From: Thierry Parmentelat Date: Thu, 20 Jun 2013 10:27:29 +0000 (+0200) Subject: protect against missing tags in start X-Git-Tag: nodemanager-5.2-4~13 X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=commitdiff_plain;h=7b50fb7fc973b74fe81b5000febebc5657432508 protect against missing tags in start --- diff --git a/sliver_lxc.py b/sliver_lxc.py index c409b32..f785e9c 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -48,7 +48,7 @@ class Sliver_LXC(Sliver_Libvirt, Initscript): # the generic /etc/init.d/vinit script is permanently refreshed, and enabled self.install_and_enable_vinit() # expose .ssh for omf_friendly slivers - if 'omf_control' in self.rspec['tags']: + if 'tags' in self.rspec and 'omf_control' in self.rspec['tags']: Account.mount_ssh_dir(self.name) Sliver_Libvirt.start (self, delay) # if a change has occured in the slice initscript, reflect this in /etc/init.d/vinit.slice