Skip to content

Commit

Permalink
use set difference method instead of - operator
Browse files Browse the repository at this point in the history
  • Loading branch information
wyattrees committed Jul 9, 2024
1 parent ffcdc00 commit 45ea494
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion anvil-python/anvil/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,4 @@ def machines_missing_juju_controllers() -> list[str]:
["juju", "machines", "--format", "json"], capture_output=True
)
machines = set(json.loads(machines_res.stdout)["machines"].keys())
return list(machines - controller_machines)
return list(machines.difference(controller_machines))

0 comments on commit 45ea494

Please sign in to comment.