From 5e11432e9da7b7dc9d2db213d18668d273033459 Mon Sep 17 00:00:00 2001 From: OpenGnSys Support Team Date: Thu, 15 Feb 2024 13:07:45 +0100 Subject: utils: remove repository change in restoreImageCustom this is broken, it uses default uses and password, remove it. --- src/utils/legacy.py | 4 ---- 1 file changed, 4 deletions(-) (limited to 'src/utils') diff --git a/src/utils/legacy.py b/src/utils/legacy.py index 437dbfd..747a16f 100644 --- a/src/utils/legacy.py +++ b/src/utils/legacy.py @@ -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: -- cgit v1.2.3-18-g5258