remove unused _print_if_error function
authorPaul Tonelli <paul.tonelli@logilab.fr>
Wed, 22 May 2013 17:01:27 +0200
changeset 139 b7d52be2811a
parent 138 32492b2ab2b4
child 140 539011bcde6c
remove unused _print_if_error function
_modules/vm_create.py
--- a/_modules/vm_create.py	Wed May 22 17:00:16 2013 +0200
+++ b/_modules/vm_create.py	Wed May 22 17:01:27 2013 +0200
@@ -51,14 +51,6 @@
 def chroot_exec(path, command):
     return __salt__['cmd.run_all']('chroot ' + path + ' ' + command)
 
-def _print_if_error(ret, info=False):
-    if info:
-        log.info(ret['stdout'])
-    if ret['retcode'] != 0:
-        log.error(ret['stderr'])
-        return False
-    return True
-
 def _find_objects(path, substring):
     object_names = [element for element in listdir(path)
             if substring in element]