mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-26 03:19:48 +00:00
Provide clearer error when osdeploy initialize is not done
osdeploy import needs to have things prepared by osdeploy initialize. Check for it having run and error if needed.
This commit is contained in:
parent
f7a80c6ac0
commit
a953a6afba
@ -672,6 +672,8 @@ class MediaImporter(object):
|
||||
|
||||
def __init__(self, media, cfm=None):
|
||||
self.worker = None
|
||||
if not os.path.exists('/var/lib/confluent/public'):
|
||||
raise Exception('`osdeploy initialize` must be executed before importing any media')
|
||||
self.profiles = []
|
||||
medfile = None
|
||||
if cfm and media in cfm.clientfiles:
|
||||
|
Loading…
Reference in New Issue
Block a user