diff options
Diffstat (limited to 'cloudinit/sources/DataSourceOpenNebula.py')
| -rw-r--r-- | cloudinit/sources/DataSourceOpenNebula.py | 7 | 
1 files changed, 4 insertions, 3 deletions
| diff --git a/cloudinit/sources/DataSourceOpenNebula.py b/cloudinit/sources/DataSourceOpenNebula.py index ac2c3b45..681f3a96 100644 --- a/cloudinit/sources/DataSourceOpenNebula.py +++ b/cloudinit/sources/DataSourceOpenNebula.py @@ -149,8 +149,8 @@ class BrokenContextDiskDir(Exception):  class OpenNebulaNetwork(object):      REG_DEV_MAC = re.compile( -                    r'^\d+: (eth\d+):.*?link\/ether (..:..:..:..:..:..) ?', -                    re.MULTILINE | re.DOTALL) +        r'^\d+: (eth\d+):.*?link\/ether (..:..:..:..:..:..) ?', +        re.MULTILINE | re.DOTALL)      def __init__(self, ip, context):          self.ip = ip @@ -404,7 +404,8 @@ def read_context_disk_dir(source_dir, asuser=None):      if ssh_key_var:          lines = context.get(ssh_key_var).splitlines()          results['metadata']['public-keys'] = [l for l in lines -            if len(l) and not l.startswith("#")] +                                              if len(l) and not +                                              l.startswith("#")]      # custom hostname -- try hostname or leave cloud-init      # itself create hostname from IP address later | 
