Check for empty iourc path.

This commit is contained in:
Jeremy 2015-05-13 16:05:54 -06:00
parent 2531a05adc
commit b2457e0b3b

View File

@ -439,8 +439,8 @@ class IOUVM(BaseVM):
raise IOUError("Could not rename nvram files: {}".format(e))
iourc_path = self.iourc_path
if iourc_path is None:
raise IOUError("Could not find a iourc file (IOU license)")
if not iourc_path:
raise IOUError("Could not find an iourc file (IOU license)")
if not os.path.isfile(iourc_path):
raise IOUError("The iourc path '{}' is not a regular file".format(iourc_path))