Changes in vimconn_vmware.py: Addressed code review changes to add raise keyword 04/1004/1
authorkate <akate@vmware.com>
Tue, 24 Jan 2017 15:26:52 +0000 (07:26 -0800)
committerkate <akate@vmware.com>
Tue, 24 Jan 2017 15:26:52 +0000 (07:26 -0800)
Change-Id: I3abec6cd31c591cefeb362b88177e15cca51be9e
Signed-off-by: kate <akate@vmware.com>
vimconn_vmware.py

index 45b27fb..f986218 100644 (file)
@@ -1107,7 +1107,7 @@ class vimconnector(vimconn.vimconnector):
                 self.logger.debug("List of already created catalog items: {}".format(image_list))
                 return image_list
         except Exception as exp:
-            vimconn.vimconnException("Exception occured while retriving catalog items {}".format(exp))
+            raise vimconn.vimconnException("Exception occured while retriving catalog items {}".format(exp))
 
     def get_vappid(self, vdc=None, vapp_name=None):
         """ Method takes vdc object and vApp name and returns vapp uuid or None