Skip to content

Commit

Permalink
yda-repair-script-unreg-change - Modified the subprocess call for unr…
Browse files Browse the repository at this point in the history
…eg command when scope is 'replica'
  • Loading branch information
kaur16 authored and stsnel committed Jul 15, 2024
1 parent 7e86310 commit eb00481
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/modify-data-object.r
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,7 @@ def unregister_replica(repl_num, logical_path, dry_run, callback, scope='replica
else:
try:
callback.writeLine("serverLog", "Subprocess - iunreg - replica scope - logical_path: " + logical_path)
status = subprocess.check_output(['iunreg', '-n', repl_num, '-N', '0', logical_path], stderr=subprocess.STDOUT)
status = subprocess.check_output(['iunreg', '-n', repl_num, '-N', '1', logical_path], stderr=subprocess.STDOUT)
except Exception as e:
status = e.output[e.output.find("ERROR:"):].rstrip()
status = status.strip()
Expand Down

0 comments on commit eb00481

Please sign in to comment.