From f35975f114680c3cb8f44c440d3d335db39e4d60 Mon Sep 17 00:00:00 2001 From: Sam Doran Date: Fri, 18 Aug 2017 00:40:29 -0400 Subject: [PATCH] PEP8 fixes --- contrib/inventory/azure_rm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/contrib/inventory/azure_rm.py b/contrib/inventory/azure_rm.py index 955a31d8a5..2b9dbb1082 100755 --- a/contrib/inventory/azure_rm.py +++ b/contrib/inventory/azure_rm.py @@ -276,7 +276,7 @@ class AzureRM(object): elif self.credentials.get('ad_user') is not None and self.credentials.get('password') is not None: tenant = self.credentials.get('tenant') if tenant is not None: - self.azure_credentials = UserPassCredentials(self.credentials['ad_user'], self.credentials['password'], tenant=tenant) + self.azure_credentials = UserPassCredentials(self.credentials['ad_user'], self.credentials['password'], tenant=tenant) else: self.azure_credentials = UserPassCredentials(self.credentials['ad_user'], self.credentials['password']) else: @@ -490,8 +490,7 @@ class AzureInventory(object): try: virtual_machines = self._compute_client.virtual_machines.list(resource_group) except Exception as exc: - sys.exit("Error: fetching virtual machines for resource group {0} - {1}".format(resource_group, - str(exc))) + sys.exit("Error: fetching virtual machines for resource group {0} - {1}".format(resource_group, str(exc))) if self._args.host or self.tags: selected_machines = self._selected_machines(virtual_machines) self._load_machines(selected_machines) @@ -802,5 +801,6 @@ def main(): AzureInventory() + if __name__ == '__main__': main()