diff --git a/src/opengnsys/modules/server/ogAdmClient/__init__.py b/src/opengnsys/modules/server/ogAdmClient/__init__.py index 58d2870..0da6a57 100644 --- a/src/opengnsys/modules/server/ogAdmClient/__init__.py +++ b/src/opengnsys/modules/server/ogAdmClient/__init__.py @@ -386,7 +386,11 @@ class ogAdmClientWorker (ogLiveWorker): self.muestraMensaje (2) inv_sft = res['contents'] try: - self.interfaceAdmin (nfn, ["--disk", disk, "--partition", partition, "--repo", repo]) + create_args = ["--disk", disk, "--partition", partition, "--repository", repo] + if msg: + create_args = create_args = ['--message', msg] + + self.interfaceAdmin (nfn, create_args) self.muestraMensaje (9) herror = 0 except: @@ -438,7 +442,11 @@ class ogAdmClientWorker (ogLiveWorker): self.muestraMensaje (2) inv_sft = res['contents'] try: - self.interfaceAdmin (nfn, ["--disk", disk, "--partition", partition, "--repo", repo, "--branch", branch, "--options", options, "--msg", msg]) + mod_args = ["--disk", disk, "--partition", partition, "--repository", repo, "--branch", branch, "--message", msg] + if options: + mod_args = mod_args + ['--options', options] + + self.interfaceAdmin (nfn, mod_args) self.muestraMensaje (9) herror = 0 except: @@ -527,11 +535,11 @@ class ogAdmClientWorker (ogLiveWorker): self.muestraMensaje (3) try: - create_args = ["--disk", disk, "--partition", partition, "--repo", repo, "--commit", commit] + restore_args = ["--disk", disk, "--partition", partition, "--repository", repo, "--commit", commit] if branch: - create_args = create_args + ["--branch", branch] + restore_args = restore_args + ["--branch", branch] - self.interfaceAdmin (nfn, create_args) + self.interfaceAdmin (nfn, restore_args) self.muestraMensaje (11) herror = 0 except: