diff options
author | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2014-04-20 15:40:50 +0000 |
---|---|---|
committer | Paul Sherwood <paul.sherwood@codethink.co.uk> | 2014-04-20 15:40:50 +0000 |
commit | 8dce48d5f49f2c89ac585f04c42023f8798140b7 (patch) | |
tree | 8eec5e915b41c6d07b6cd5fdc8aab85c5f0fa9f6 /virtualbox-ssh.write | |
parent | 86032ee0d02271d05a48b9dfe724556c7e5d2f42 (diff) | |
download | definitions-8dce48d5f49f2c89ac585f04c42023f8798140b7.tar.gz |
fix the Virtualbox version checking
Diffstat (limited to 'virtualbox-ssh.write')
-rwxr-xr-x | virtualbox-ssh.write | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/virtualbox-ssh.write b/virtualbox-ssh.write index 2a2f3f7b..b9d53579 100755 --- a/virtualbox-ssh.write +++ b/virtualbox-ssh.write @@ -116,7 +116,7 @@ class VirtualBoxPlusSshWriteExtension(morphlib.writeexts.WriteExtension): # comparing against the major, minor and patch numbers directly self.status(msg='Checking version of remote VirtualBox') build_id = cliapp.ssh_runcmd(ssh_host, ['VBoxManage', '--version']) - version_string = re.match(r"^([0-9\.])+.*$", build_id.strip()).group(1) + version_string = re.match(r"^([0-9\.]+).*$", build_id.strip()).group(1) return tuple(int(s or '0') for s in version_string.split('.')) def create_virtualbox_guest(self, ssh_host, vm_name, vdi_path, autostart): @@ -130,7 +130,7 @@ class VirtualBoxPlusSshWriteExtension(morphlib.writeexts.WriteExtension): hostonly_iface = self.get_host_interface(ssh_host) - if self.virtualbox_version(ssh_host) < (4, 3): + if self.virtualbox_version(ssh_host) < (4, 3, 0): sataportcount_option = '--sataportcount' else: sataportcount_option = '--portcount' |