diff options
| author | Ryan Harper <ryan.harper@canonical.com> | 2016-03-03 17:16:13 -0600 | 
|---|---|---|
| committer | Ryan Harper <ryan.harper@canonical.com> | 2016-03-03 17:16:13 -0600 | 
| commit | 63357ed731710b2418810535d9c991adbaea8dcb (patch) | |
| tree | 5c553b0671669beb204c4edb3d82ebeda78d7cd3 /cloudinit/sources/helpers | |
| parent | b1046db66bbed6a063f218992449b8abfd1ae99b (diff) | |
| parent | 3d9153d16b194e7a3139c290e723ef17518e617d (diff) | |
| download | vyos-cloud-init-63357ed731710b2418810535d9c991adbaea8dcb.tar.gz vyos-cloud-init-63357ed731710b2418810535d9c991adbaea8dcb.zip | |
Apply pep8, pyflakes fixes for python2 and 3 
Update make check target to use pep8, pyflakes, pyflakes3.
Diffstat (limited to 'cloudinit/sources/helpers')
| -rw-r--r-- | cloudinit/sources/helpers/vmware/imc/config_nic.py | 10 | 
1 files changed, 5 insertions, 5 deletions
| diff --git a/cloudinit/sources/helpers/vmware/imc/config_nic.py b/cloudinit/sources/helpers/vmware/imc/config_nic.py index 6d721134..8c5c08cf 100644 --- a/cloudinit/sources/helpers/vmware/imc/config_nic.py +++ b/cloudinit/sources/helpers/vmware/imc/config_nic.py @@ -46,12 +46,12 @@ class NicConfigurator:          """          primary_nics = [nic for nic in self.nics if nic.primary]          if not primary_nics: -           return None +            return None          elif len(primary_nics) > 1: -           raise Exception('There can only be one primary nic', +            raise Exception('There can only be one primary nic',                              [nic.mac for nic in primary_nics])          else: -           return primary_nics[0] +            return primary_nics[0]      def find_devices(self):          """ @@ -185,8 +185,8 @@ class NicConfigurator:          lines = []          for addr in addrs: -            lines.append('    up route -A inet6 add default gw %s metric 10000' % -                         addr.gateway) +            lines.append('    up route -A inet6 add default gw ' +                         '%s metric 10000' % addr.gateway)          return lines | 
