forked from ceph/teuthology
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathupdatekeys.py
31 lines (24 loc) · 859 Bytes
/
updatekeys.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import docopt
import sys
import teuthology.lock
import teuthology.lock.cli
doc = """
usage: teuthology-updatekeys -h
teuthology-updatekeys [-v] -t <targets>
teuthology-updatekeys [-v] <machine> ...
teuthology-updatekeys [-v] -a
Update any hostkeys that have changed. You can list specific machines to run
on, or use -a to check all of them automatically.
positional arguments:
MACHINES hosts to check for updated keys
optional arguments:
-h, --help Show this help message and exit
-v, --verbose Be more verbose
-t <targets>, --targets <targets>
Input yaml containing targets to check
-a, --all Update hostkeys of all machines in the db
"""
def main():
args = docopt.docopt(doc)
status = teuthology.lock.cli.updatekeys(args)
sys.exit(status)