Skip to content

Commit

Permalink
Merge pull request #10946 from vavuthu/silence_the_mg_external_script…
Browse files Browse the repository at this point in the history
…_output

redirect debugging output to stdout for mg external script
  • Loading branch information
vavuthu authored Dec 3, 2024
2 parents 7ddeb9b + e1487bb commit 85c300a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ocs_ci/ocs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -1010,7 +1010,8 @@ def collect_ceph_external(path):
current_dir = Path(__file__).parent.parent.parent
script_path = os.path.join(current_dir, "scripts", "bash", "mg_external.sh")
run_cmd(
f"sh {script_path} {os.path.join(path, 'ceph_external')} {kubeconfig_path}",
f"sh {script_path} {os.path.join(path, 'ceph_external')} {kubeconfig_path} "
f"{ocsci_config.ENV_DATA['cluster_namespace']}",
timeout=140,
)
except Exception as ex:
Expand Down
3 changes: 3 additions & 0 deletions scripts/bash/mg_external.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
#!/usr/bin/env bash

# redirect the debugging output to stdout
exec 2>&1
set -x

# Function to print usage information
Expand Down

0 comments on commit 85c300a

Please sign in to comment.