mirror of
				https://github.com/xcat2/confluent.git
				synced 2025-10-30 19:02:29 +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:
		| @@ -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: | ||||
|   | ||||
		Reference in New Issue
	
	Block a user