X-Git-Url: http://git.onelab.eu/?p=nodemanager.git;a=blobdiff_plain;f=sliver_lxc.py;h=e54c453f86f3dc30d4d174903ccefc99eece8e35;hp=a9988fecf62a2720be16f2e47188d93ebc94469e;hb=HEAD;hpb=0a3ad704b062bbad72dbbc1e0c753da56da45e84 diff --git a/sliver_lxc.py b/sliver_lxc.py index a9988fe..e54c453 100644 --- a/sliver_lxc.py +++ b/sliver_lxc.py @@ -80,8 +80,8 @@ class Sliver_LXC(Sliver_Libvirt, Initscript): .format(self.name) command = plain.split() logger.log_call(command, timeout=3) - - + + @staticmethod def create(name, rec=None): ''' @@ -151,7 +151,8 @@ class Sliver_LXC(Sliver_Libvirt, Initscript): # this assumes the reference image is in its own subvolume command = ['btrfs', 'subvolume', 'snapshot', refImgDir, containerDir] if not logger.log_call(command, timeout=BTRFS_TIMEOUT): - logger.log('sliver_lxc: ERROR Could not create BTRFS snapshot at', containerDir) + logger.log('sliver_lxc: ERROR Could not create BTRFS snapshot at {}' + .format(containerDir)) return command = ['chmod', '755', containerDir] logger.log_call(command)