code cleaning and bug correction
authorPaul Tonelli <paul.tonelli@logilab.fr>
Tue, 05 Mar 2013 15:49:50 +0100
changeset 21 1a60c5146af3
parent 20 b72d3743bad6
child 22 6cd919e309f1
code cleaning and bug correction
_modules/vm_create.py
--- a/_modules/vm_create.py	Tue Mar 05 15:15:27 2013 +0100
+++ b/_modules/vm_create.py	Tue Mar 05 15:49:50 2013 +0100
@@ -3,8 +3,6 @@
 translation of a bash script to create a flavored virtual machine
 '''
 
-
-
 PROXY_ADDRESS = 'http://proxy.logilab.priv:3142/'
 DEFAULT_PATH = '/mnt'
 APT_PROXY_FILENAME = '/etc/apt/apt.conf.d/01proxy'
@@ -182,7 +180,7 @@
     image_dirname = DEFAULT_MOUNT_DIR
     ### Exec pre state here ###
     #update_image(path + '/' + image_dirname)
-    log.info(__salt__['state.sls']('ami_creator_pre')
+    log.info(__salt__['state.sls']('ami_creator_pre'))
     #variate_image(path + '/' + image_dirname, variation_filename)
     #kernel_name, ramdisk_name = get_initrd_kernel(path, image_dirname)
     kernel_name = "vmlinuz_" + DEFAULT_MOUNT_DIR
@@ -190,7 +188,7 @@
     #clean_images(path,image_dirname)
     #umount_images(path)
     #resize_and_check(path, image_name)
-    log.info(__salt__['state.sls']('ami_creator_post')
+    log.info(__salt__['state.sls']('ami_creator_post'))
     if bool(upload_to_glance):
         log.info('will now upload to glance server')
         id_kernel = __salt__['openstack_client.upload_to_glance'](