updated module vmcreate from calling ami_creator_pre and ami_creator_post to calling ami_pre and ami_post
authorPaul Tonelli <paul.tonelli@logilab.fr>
Thu, 14 Mar 2013 19:54:31 +0100
changeset 82 d1208c3e8b50
parent 81 55f06c0e278c
child 83 09fdf067e0b7
updated module vmcreate from calling ami_creator_pre and ami_creator_post to calling ami_pre and ami_post
_modules/vm_create.py
--- a/_modules/vm_create.py	Thu Mar 14 19:53:44 2013 +0100
+++ b/_modules/vm_create.py	Thu Mar 14 19:54:31 2013 +0100
@@ -54,10 +54,10 @@
     '''
     image_dirname = DEFAULT_MOUNT_DIR
     ### Exec pre state here ###
-    log.info(__salt__['state.sls']('ami_creator_pre'))
+    log.info(__salt__['state.sls']('ami_pre'))
     update_image(path + '/' + image_dirname)
     variate_image(path + '/' + image_dirname)
-    log.info(__salt__['state.sls']('ami_creator_post'))
+    log.info(__salt__['state.sls']('ami_post'))
 
     if __salt__['grains.item']('keystone.user'): #true only if len>0
         upload_to_glance(path)