summaryrefslogtreecommitdiffstats
path: root/func/overlord/func_command.py
diff options
context:
space:
mode:
authorAdrian Likins <alikins@grimlock.devel.redhat.com>2008-02-12 14:36:27 -0500
committerAdrian Likins <alikins@grimlock.devel.redhat.com>2008-02-12 14:36:27 -0500
commit7e232e4a72a68ddcfa21cc44c705d8b6cc0092a4 (patch)
treed08ea10a77119cbf1c281a9f6b0bd98caa4f35fa /func/overlord/func_command.py
parentbca510c2645ff24e5373dc0e7ff978ba7184693d (diff)
downloadfunc-7e232e4a72a68ddcfa21cc44c705d8b6cc0092a4.tar.gz
func-7e232e4a72a68ddcfa21cc44c705d8b6cc0092a4.tar.xz
func-7e232e4a72a68ddcfa21cc44c705d8b6cc0092a4.zip
Refactor the minion/server list and group stuff. Still not ideal, but
a touch more OO. Also update unittests/etc. Did some s/servers/minions/ renaming while I was at it as well. Need to go back and finish that up.
Diffstat (limited to 'func/overlord/func_command.py')
-rw-r--r--func/overlord/func_command.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/func/overlord/func_command.py b/func/overlord/func_command.py
index 4cec8a0..8bc6b7c 100644
--- a/func/overlord/func_command.py
+++ b/func/overlord/func_command.py
@@ -55,10 +55,10 @@ class FuncCommandLine(command.Command):
if len(args) < 2:
print "see the func manpage for usage"
sys.exit(411)
- server_string = args[0]
+ minion_string = args[0]
# try to be clever about this for now
- if client.isServer(server_string) or self._isGlob(server_string):
- self.server_spec = server_string
+ if client.is_minion(minion_string) or self._isGlob(minion_string):
+ self.server_spec = minion_string
args.pop(0)
# if it doesn't look like server, assume it
# is a sub command? that seems wrong, what about