Created
February 21, 2012 19:35
-
-
Save richleland/1878379 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def add_hosts(destination, host_list): | |
| for key, val in env.roledefs.items(): | |
| if key == destination and host_list not in env.roledefs[key]: | |
| env.roledefs[key] = list(set(env.roledefs[key] + host_list)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment