mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
deploy: do not require special character for groups
This commit is contained in:
parent
b583d03a9d
commit
0c1f8c19c4
1 changed files with 3 additions and 2 deletions
|
@ -35,8 +35,8 @@ def expand(ln):
|
|||
for item in ln.split(","):
|
||||
if item == "all":
|
||||
hosts.update(depl)
|
||||
elif item[0] == "@":
|
||||
hosts.update(x for x in depl if item[1:] in depl[x]["tags"])
|
||||
elif item in tags:
|
||||
hosts.update(name for name in depl if item in depl[name]["tags"])
|
||||
else:
|
||||
hosts.add(item)
|
||||
for host in hosts:
|
||||
|
@ -185,5 +185,6 @@ icon_bad = "\u274c"
|
|||
icon_good = "\u2705"
|
||||
strict_host_key_checking()
|
||||
depl = get_deployment()
|
||||
tags = set(sum([depl[name]["tags"] for name in depl], []))
|
||||
if __name__ == "__main__":
|
||||
main()
|
||||
|
|
Loading…
Reference in a new issue