Skip to content

Commit

Permalink
labels - AT provider - fix label value parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
rplevka committed Apr 3, 2024
1 parent bcac375 commit 6cb32a2
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions broker/providers/ansible_tower.py
Original file line number Diff line number Diff line change
Expand Up @@ -576,10 +576,7 @@ def execute(self, **kwargs): # noqa: PLR0912,PLR0915 - Possible TODO refactor
payload["labels"] = self._resolve_labels(labels, target)
# record labels also as extra vars - use key=value format
kwargs.update(
{
f"_broker_label_{label[0]}": "=".join(label[1:])
for label in [kv_pair.split("=") for kv_pair in labels]
}
{f"_broker_label_{label[0]}": "=".join(label[1:]) for label in labels.items()}
)
elif self.inventory:
payload["inventory"] = self.inventory
Expand Down

0 comments on commit 6cb32a2

Please sign in to comment.