mirror of https://git.48k.eu/ogclient
utils: remove repository change in restoreImageCustom
this is broken, it uses default uses and password, remove it.master
parent
2da8b98fff
commit
5e11432e9d
|
@ -213,10 +213,6 @@ def restoreImageCustom(repo_ip, image_name, disk, partition, method):
|
|||
logging.error('Invalid restoreImageCustom invocation')
|
||||
raise ValueError('Error: restoreImageCustom not found')
|
||||
|
||||
if ogChangeRepo(repo) != 0:
|
||||
logging.error('ogChangeRepo could not change repository to %s', repo)
|
||||
raise ValueError(f'Error: Cannot change repository to {repo}')
|
||||
|
||||
cmd = f'restoreImageCustom {repo_ip} {image_name} {disk} {partition} {method}'
|
||||
with open('/tmp/command.log', 'wb', 0) as logfile:
|
||||
try:
|
||||
|
|
Loading…
Reference in New Issue