Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

creata data directory for downloading mcg-cli #8828

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ocs_ci/ocs/resources/mcg.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
from ocs_ci.utility import templating, version
from ocs_ci.utility.retry import retry
from ocs_ci.utility.utils import (
create_directory_path,
get_attr_chain,
get_ocs_build_number,
exec_cmd,
Expand Down Expand Up @@ -943,6 +944,10 @@ def retrieve_noobaa_cli_binary(self):

pull_secret_path = os.path.join(constants.DATA_DIR, "pull-secret")

# create DATA_DIR if it doesn't exist
if not os.path.exists(constants.DATA_DIR):
create_directory_path(constants.DATA_DIR)

if not os.path.isfile(pull_secret_path):
logger.info(
f"Extracting pull-secret and placing it under {pull_secret_path}"
Expand Down
Loading