]> Frank Brehm's Git Trees - pixelpark/create-vmware-tpl.git/commitdiff
Changing error handling
authorFrank Brehm <frank.brehm@pixelpark.com>
Wed, 18 Oct 2023 10:28:43 +0000 (12:28 +0200)
committerFrank Brehm <frank.brehm@pixelpark.com>
Wed, 18 Oct 2023 10:28:43 +0000 (12:28 +0200)
lib/cr_vmware_tpl/handler/vm.py

index 4e0183d5cd8b3a8365662b412caf1c2d2ae36351..b74c62ddfb1373785cebd224fa75ae7dbaa59846 100644 (file)
@@ -247,11 +247,11 @@ class HandlerVmMixin():
             result = self.exec_remote(cmd)
 
             if result['err']:
-                LOG.error(result['err'])
-                if self.postinstall_errors:
-                    self.postinstall_errors += result['err']
-                else:
-                    self.postinstall_errors = result['err']
+                LOG.warn(result['err'])
+                if self.postinstall_errors:
+                    self.postinstall_errors += result['err']
+                else:
+                    self.postinstall_errors = result['err']
             else:
                 LOG.debug("{}:\n\n".format(desc) + result['out'])