Skip to content

Commit 048ec31

Browse files
committed
Remove Random Hosts Function
Removed substituting hosts function `util.use_random_host` see commit: ab04af3
1 parent c8d2060 commit 048ec31

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

locksmith.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from fabric.api import run, task
22
from fabric.utils import error
33
import fabric.contrib.files
4-
import util
54

65
etcd_cluster = 'http://etcd-1.management:4001'
76
locksmithctl = '/usr/bin/locksmithctl'
@@ -15,14 +14,12 @@ def check_locksmithctl():
1514
@task
1615
def status():
1716
"""Get the status of locksmith"""
18-
util.use_random_host('class-etcd')
1917
check_locksmithctl()
2018
run("{0} -endpoint='{1}' status".format(locksmithctl, etcd_cluster))
2119

2220

2321
@task
2422
def unlock(machine_name):
2523
"""Unlock a machine with locksmith"""
26-
util.use_random_host('class-etcd')
2724
check_locksmithctl()
2825
run("{0} -endpoint='{1}' unlock '{2}'".format(locksmithctl, etcd_cluster, machine_name))

0 commit comments

Comments
 (0)