Clean up
This commit is contained in:
6
sync.py
6
sync.py
@@ -28,12 +28,6 @@ def update_keys(host, user, keys):
|
|||||||
except Exception:
|
except Exception:
|
||||||
print('❌ ' + user + '@' + host)
|
print('❌ ' + user + '@' + host)
|
||||||
|
|
||||||
def find_by_name(name, elements):
|
|
||||||
found = [element for element in elements if element['name'] == name]
|
|
||||||
if not found:
|
|
||||||
return False
|
|
||||||
return found[0]
|
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
config = read_config()
|
config = read_config()
|
||||||
for host in config['hosts']:
|
for host in config['hosts']:
|
||||||
|
|||||||
Reference in New Issue
Block a user