summaryrefslogtreecommitdiffstats
path: root/src/utils/legacy.py
diff options
context:
space:
mode:
authorOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-15 13:07:45 +0100
committerOpenGnSys Support Team <soporte-og@soleta.eu>2024-02-15 16:58:51 +0100
commit5e11432e9da7b7dc9d2db213d18668d273033459 (patch)
treee0d4343423c0d68e60065a3e619c87cb0d60fa0d /src/utils/legacy.py
parent2da8b98fffe15bc80717645646a1557ff0d428ef (diff)
utils: remove repository change in restoreImageCustom
this is broken, it uses default uses and password, remove it.
Diffstat (limited to 'src/utils/legacy.py')
-rw-r--r--src/utils/legacy.py4
1 files changed, 0 insertions, 4 deletions
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: