summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-01-27 14:58:38 +0000
committerPedro Alvarez <pedro.alvarez@codethink.co.uk>2015-01-27 14:58:38 +0000
commitcd7ca2e510416f61ebbc5e9203d715f8e20371c6 (patch)
tree71869c3af5ac147273971096993f3541af420a9c
parent8857087c0817bade69169dab33d557a7ada45e71 (diff)
parent6954cb26746471e7ca2caebe3b050f952e82573d (diff)
downloaddefinitions-cd7ca2e510416f61ebbc5e9203d715f8e20371c6.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-xvirtualbox-ssh.write14
1 files changed, 0 insertions, 14 deletions
diff --git a/virtualbox-ssh.write b/virtualbox-ssh.write
index 1b4de89c..fa54c296 100755
--- a/virtualbox-ssh.write
+++ b/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')