utils: remove repository change in restoreImageCustom

this is broken, it uses default uses and password, remove it.
master
OpenGnSys Support Team 2024-02-15 13:07:45 +01:00
parent 2da8b98fff
commit 5e11432e9d
1 changed files with 0 additions and 4 deletions

View File

@ -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: