diff options
author | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-01-27 14:58:38 +0000 |
---|---|---|
committer | Pedro Alvarez <pedro.alvarez@codethink.co.uk> | 2015-01-27 14:58:38 +0000 |
commit | f0c5d4c0ef35cc43aa059cd2255e41c60c4cac77 (patch) | |
tree | 482a138d8f84c2f7a4fc91d6bbc9005df6c60750 | |
parent | 1710aa1c5f4bc95695f5030c900d37174fe05ad7 (diff) | |
parent | 6ad303e3bd3c2bb7ad0dd5670f62ebe99626afba (diff) | |
download | morph-f0c5d4c0ef35cc43aa059cd2255e41c60c4cac77.tar.gz |
Merge branch 'jmac/remove-eth0-eth1-check'
Reviewed-by: Francisco Redondo Marchena <francisco.marchena@codethink.co.uk>
Reviewed-by: Pedro Alvarez <pedro.alvarez@codethink.co.uk>
-rwxr-xr-x | morphlib/exts/virtualbox-ssh.write | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/morphlib/exts/virtualbox-ssh.write b/morphlib/exts/virtualbox-ssh.write index 1b4de89c..fa54c296 100755 --- a/morphlib/exts/virtualbox-ssh.write +++ b/morphlib/exts/virtualbox-ssh.write @@ -169,20 +169,6 @@ class VirtualBoxPlusSshWriteExtension(morphlib.writeexts.WriteExtension): def get_host_interface(self, ssh_host): host_ipaddr = os.environ.get('HOST_IPADDR') netmask = os.environ.get('NETMASK') - network_config = os.environ.get("NETWORK_CONFIG") - - if network_config is None: - raise cliapp.AppException('NETWORK_CONFIG was not given') - - if "eth0:" not in network_config: - raise cliapp.AppException( - 'NETWORK_CONFIG does not contain ' - 'the eth0 configuration') - - if "eth1:" not in network_config: - raise cliapp.AppException( - 'NETWORK_CONFIG does not contain ' - 'the eth1 configuration') if host_ipaddr is None: raise cliapp.AppException('HOST_IPADDR was not given') |