summaryrefslogtreecommitdiffstats
path: root/deployment/inventory/vsphere
diff options
context:
space:
mode:
authorValerii Ponomarov <vponomar@redhat.com>2019-08-30 19:07:12 +0530
committervponomar <vponomar@redhat.com>2019-09-03 12:29:24 +0000
commit5c2f44b77449f47c5c9f437d580c2c6a73e27af0 (patch)
tree4989e2c2ffc52ae965c0e9fb90c40e9edf513f54 /deployment/inventory/vsphere
parent8832a8ac463ee480762276bd19dc085a1f637f3f (diff)
Fix pep8 errors in the files of the 'deployment' dir
Change-Id: I4b469969a041eaf4ccb6d95a59d6d2332c6c845c
Diffstat (limited to 'deployment/inventory/vsphere')
-rwxr-xr-xdeployment/inventory/vsphere/vms/vmware_inventory.py12
1 files changed, 6 insertions, 6 deletions
diff --git a/deployment/inventory/vsphere/vms/vmware_inventory.py b/deployment/inventory/vsphere/vms/vmware_inventory.py
index cdb6bd13..0cc485e7 100755
--- a/deployment/inventory/vsphere/vms/vmware_inventory.py
+++ b/deployment/inventory/vsphere/vms/vmware_inventory.py
@@ -290,8 +290,8 @@ class VMWareInventory(object):
for child in content.rootFolder.childEntity:
instances += self._get_instances_from_children(child)
if self.args.max_instances:
- if len(instances) >= (self.args.max_instances+1):
- instances = instances[0:(self.args.max_instances+1)]
+ if len(instances) >= (self.args.max_instances + 1):
+ instances = instances[0:(self.args.max_instances + 1)]
instance_tuples = []
for instance in sorted(instances):
ifacts = self.facts_from_vobj(instance)
@@ -535,15 +535,15 @@ class VMWareInventory(object):
if type(vi) in self.safe_types:
rdata.append(vi)
else:
- if (level+1 <= self.maxlevel):
- vid = self.facts_from_vobj(vi, level=(level+1))
+ if (level + 1 <= self.maxlevel):
+ vid = self.facts_from_vobj(vi, level=(level + 1))
if vid:
rdata.append(vid)
elif hasattr(vobj, '__dict__'):
- if (level+1 <= self.maxlevel):
+ if (level + 1 <= self.maxlevel):
md = None
- md = self.facts_from_vobj(vobj, level=(level+1))
+ md = self.facts_from_vobj(vobj, level=(level + 1))
if md:
rdata = md
elif not vobj or type(vobj) in self.safe_types: