Skip to content

Commit 4cfb0ce

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 1d79aa6 commit 4cfb0ce

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

one_click_deploy/core/deployer.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -371,14 +371,13 @@ def _interactive_setup_for_deploy(self):
371371
if help_text:
372372
prompt_text = f"{prompt_text} ({help_text})"
373373

374-
375-
user_input = click.prompt(prompt_text, default=final_default , type=param.get("type", str))
374+
user_input = click.prompt(prompt_text, default=final_default, type=param.get("type", str))
376375

377376
value_to_set = user_input if user_input else final_default
378377

379378
is_required = param.get("required", False)
380379

381-
while is_required and not value_to_set:
380+
while is_required and not value_to_set:
382381
log_message("WARN", f"A valid '{param['prompt']}' is required. Please provide a real value.")
383382
user_input = click.prompt(prompt_text, type=param.get("type", str), default=None)
384383
value_to_set = user_input if user_input else None

one_click_deploy/core/utils.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -393,11 +393,7 @@ def get_var_from_shell_script(script_path: pathlib.Path, var_name: str) -> str |
393393
log_message("DEBUG", f"Source script for variable extraction not found: {script_path}")
394394
return None
395395

396-
command_string = (
397-
f'NON_INTERACTIVE=true; '
398-
f'source "{script_path.resolve()}" > /dev/null; '
399-
f'echo "${var_name}"'
400-
)
396+
command_string = f"NON_INTERACTIVE=true; " f'source "{script_path.resolve()}" > /dev/null; ' f'echo "${var_name}"'
401397
try:
402398
result = run_command(
403399
["bash", "-c", command_string],

0 commit comments

Comments
 (0)