protect against missing tags in start
authorThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 20 Jun 2013 10:27:29 +0000 (12:27 +0200)
committerThierry Parmentelat <thierry.parmentelat@inria.fr>
Thu, 20 Jun 2013 10:27:29 +0000 (12:27 +0200)
sliver_lxc.py

index c409b32..f785e9c 100644 (file)
@@ -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