Skip to content

Commit

Permalink
undo an autoformater edit
Browse files Browse the repository at this point in the history
  • Loading branch information
OniriCorpe committed May 20, 2024
1 parent 6b564ef commit b8b683b
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/utils/resources.py
Original file line number Diff line number Diff line change
Expand Up @@ -1153,9 +1153,7 @@ def __init__(self, properties: Dict[str, Any], *args, **kwargs):

for key, values in self.extras.items():
if isinstance(values.get("packages"), str):
values["packages"] = [
value.strip() for value in values["packages"].split(",")
] # type: ignore
values["packages"] = [value.strip() for value in values["packages"].split(",")] # type: ignore

if isinstance(values.get("packages_from_raw_bash"), str):
out, err = self.check_output_bash_snippet(
Expand All @@ -1166,9 +1164,7 @@ def __init__(self, properties: Dict[str, Any], *args, **kwargs):
f"Error while running apt resource packages_from_raw_bash snippet for '{key}' extras:"
)
logger.error(err)
values["packages"] = values.get("packages", []) + [
value.strip() for value in out.split("\n")
] # type: ignore
values["packages"] = values.get("packages", []) + [value.strip() for value in out.split("\n")] # type: ignore

if (
not isinstance(values.get("repo"), str)
Expand Down

0 comments on commit b8b683b

Please sign in to comment.