summaryrefslogtreecommitdiff
path: root/cloudinit/sources/helpers/vmware/imc/nic.py
diff options
context:
space:
mode:
authorSankar Tanguturi <stanguturi@stanguturi-rhel>2016-02-16 17:34:24 -0800
committerSankar Tanguturi <stanguturi@stanguturi-rhel>2016-02-16 17:34:24 -0800
commit0ce71cb8975e19677eea415101e15da5f4095cd5 (patch)
tree7ba79660baedc87c86b6b9e98f9d13ce5a576367 /cloudinit/sources/helpers/vmware/imc/nic.py
parent39f668e5db8d09c46eee3a5df73a69f8d85ba489 (diff)
downloadvyos-cloud-init-0ce71cb8975e19677eea415101e15da5f4095cd5.tar.gz
vyos-cloud-init-0ce71cb8975e19677eea415101e15da5f4095cd5.zip
- Used proper 4 space indentations for config_nic.py and nic.py
- Implemented the 'search_file' function using 'os.walk()' - Fixed few variable names. - Removed size() function in config_file.py - Updated the test_config_file.py to use len() instead of .size()
Diffstat (limited to 'cloudinit/sources/helpers/vmware/imc/nic.py')
-rw-r--r--cloudinit/sources/helpers/vmware/imc/nic.py20
1 files changed, 10 insertions, 10 deletions
diff --git a/cloudinit/sources/helpers/vmware/imc/nic.py b/cloudinit/sources/helpers/vmware/imc/nic.py
index 6628a3ec..b5d704ea 100644
--- a/cloudinit/sources/helpers/vmware/imc/nic.py
+++ b/cloudinit/sources/helpers/vmware/imc/nic.py
@@ -49,35 +49,35 @@ class Nic(NicBase):
def primary(self):
value = self._get('PRIMARY')
if value:
- value = value.lower()
- return value == 'yes' or value == 'true'
+ value = value.lower()
+ return value == 'yes' or value == 'true'
else:
- return False
+ return False
@property
def onboot(self):
value = self._get('ONBOOT')
if value:
- value = value.lower()
- return value == 'yes' or value == 'true'
+ value = value.lower()
+ return value == 'yes' or value == 'true'
else:
- return False
+ return False
@property
def bootProto(self):
value = self._get('BOOTPROTO')
if value:
- return value.lower()
+ return value.lower()
else:
- return ""
+ return ""
@property
def ipv4_mode(self):
value = self._get('IPv4_MODE')
if value:
- return value.lower()
+ return value.lower()
else:
- return ""
+ return ""
@property
def staticIpv4(self):