summaryrefslogtreecommitdiff
path: root/contrib
diff options
context:
space:
mode:
authorMatt Clay <matt@mystile.com>2019-02-13 18:39:26 -0800
committerMatt Clay <matt@mystile.com>2019-02-13 23:35:39 -0800
commit3e778d3f8f8c15181afc647a75f9825726bf687e (patch)
tree2cbb5ada34f722a1b17041f0f951925bbb4fc38e /contrib
parent7b8e814a10e0410dc9f26b83016a7f5086ced4d1 (diff)
downloadansible-3e778d3f8f8c15181afc647a75f9825726bf687e.tar.gz
Fix pycodestyle E117 issues.
Diffstat (limited to 'contrib')
-rwxr-xr-xcontrib/inventory/azure_rm.py16
-rwxr-xr-xcontrib/vault/azure_vault.py14
2 files changed, 15 insertions, 15 deletions
diff --git a/contrib/inventory/azure_rm.py b/contrib/inventory/azure_rm.py
index ba758b7e39..a83558cd49 100755
--- a/contrib/inventory/azure_rm.py
+++ b/contrib/inventory/azure_rm.py
@@ -354,13 +354,13 @@ class AzureRM(object):
self.credentials.get('client_id') is not None and \
self.credentials.get('tenant') is not None:
- self.azure_credentials = self.acquire_token_with_username_password(
- self._adfs_authority_url,
- self._resource,
- self.credentials['ad_user'],
- self.credentials['password'],
- self.credentials['client_id'],
- self.credentials['tenant'])
+ self.azure_credentials = self.acquire_token_with_username_password(
+ self._adfs_authority_url,
+ self._resource,
+ self.credentials['ad_user'],
+ self.credentials['password'],
+ self.credentials['client_id'],
+ self.credentials['tenant'])
elif self.credentials.get('ad_user') is not None and self.credentials.get('password') is not None:
tenant = self.credentials.get('tenant')
@@ -813,7 +813,7 @@ class AzureInventory(object):
sys.exit("Error: fetching instanceview for host {0} - {1}".format(name, str(exc)))
return next((s.code.replace('PowerState/', '')
- for s in vm.instance_view.statuses if s.code.startswith('PowerState')), None)
+ for s in vm.instance_view.statuses if s.code.startswith('PowerState')), None)
def _add_host(self, vars):
diff --git a/contrib/vault/azure_vault.py b/contrib/vault/azure_vault.py
index 0be05c5a98..8c118cc0fc 100755
--- a/contrib/vault/azure_vault.py
+++ b/contrib/vault/azure_vault.py
@@ -262,13 +262,13 @@ class AzureRM(object):
self.credentials.get('client_id') is not None and \
self.credentials.get('tenant') is not None:
- self.azure_credentials = self.acquire_token_with_username_password(
- self._adfs_authority_url,
- self._resource,
- self.credentials['ad_user'],
- self.credentials['password'],
- self.credentials['client_id'],
- self.credentials['tenant'])
+ self.azure_credentials = self.acquire_token_with_username_password(
+ self._adfs_authority_url,
+ self._resource,
+ self.credentials['ad_user'],
+ self.credentials['password'],
+ self.credentials['client_id'],
+ self.credentials['tenant'])
elif self.credentials.get('ad_user') is not None and self.credentials.get('password') is not None:
tenant = self.credentials.get('tenant')