Skip to content

Commit

Permalink
Fixed ansible lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
kavinagrawalcohesity committed Dec 5, 2024
1 parent c7a0d6b commit b7d4e73
Show file tree
Hide file tree
Showing 18 changed files with 19 additions and 18 deletions.
3 changes: 2 additions & 1 deletion plugins/module_utils/cohesity_auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error


class ParameterViolation(Exception):
pass
Expand Down
2 changes: 1 addition & 1 deletion plugins/module_utils/cohesity_hints.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error
from ansible.module_utils.six.moves import urllib_parse

try:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error
from tempfile import mkdtemp

try:
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_cancel_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_finalize_migration.py
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_migrate_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_migration_status.py
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_oracle_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_oracle_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

from ansible_collections.cohesity.dataprotect.plugins.module_utils.cohesity_auth import (
get__cohesity_auth__token,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_restore_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_restore_vm.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_restore_vmware_file.py
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_sync_objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_uda_protection_group.py
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down
2 changes: 1 addition & 1 deletion plugins/modules/cohesity_uda_source.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@
try:
from urllib import error as urllib_error
except ImportError:
import urllib2 as urllib_error
from ansible.module_utils.urls import urllib_error

try:
# => When unit testing, we need to look in the correct location however, when run via ansible,
Expand Down

0 comments on commit b7d4e73

Please sign in to comment.