summaryrefslogtreecommitdiffstats
path: root/func/overlord
diff options
context:
space:
mode:
authorSteve 'Ashcrow' Milner <stevem@gnulinux.net>2008-01-13 14:58:34 -0500
committerSteve 'Ashcrow' Milner <stevem@gnulinux.net>2008-01-13 14:58:34 -0500
commitb90f49d4a9cea6b02fb739f8e3afe92dc7fd1731 (patch)
tree878d4a2acc5fea8c94e9b4de13d6ad1c8542f752 /func/overlord
parentb77fbdd90f46b3d1602aa43e99abec096d93888e (diff)
downloadthird_party-func-b90f49d4a9cea6b02fb739f8e3afe92dc7fd1731.tar.gz
third_party-func-b90f49d4a9cea6b02fb739f8e3afe92dc7fd1731.tar.xz
third_party-func-b90f49d4a9cea6b02fb739f8e3afe92dc7fd1731.zip
more deletions of shebangs.
Diffstat (limited to 'func/overlord')
-rwxr-xr-xfunc/overlord/client.py10
-rw-r--r--func/overlord/cmd_modules/call.py2
-rw-r--r--func/overlord/cmd_modules/copyfile.py3
-rw-r--r--func/overlord/cmd_modules/listminions.py2
4 files changed, 3 insertions, 14 deletions
diff --git a/func/overlord/client.py b/func/overlord/client.py
index c6d8ab6..4c29c63 100755
--- a/func/overlord/client.py
+++ b/func/overlord/client.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
##
## func command line interface & client lib
##
@@ -62,10 +60,8 @@ class CommandAutomagic(object):
method = ".".join(self.base[1:])
return self.clientref.run(module,method,args,nforks=self.nforks)
-# ===================================
-
-
+# ===================================
# this is a module level def so we can use it and isServer() from
# other modules with a Client class
def expand_servers(spec, port=51234, noglobs=None, verbose=None, just_fqdns=False):
@@ -104,6 +100,7 @@ def expand_servers(spec, port=51234, noglobs=None, verbose=None, just_fqdns=Fals
return all_urls
+
# does the hostnamegoo actually expand to anything?
def isServer(server_string):
servers = expand_servers(server_string)
@@ -111,6 +108,7 @@ def isServer(server_string):
return True
return False
+
class Client(object):
def __init__(self, server_spec, port=DEFAULT_PORT, interactive=False,
@@ -260,5 +258,3 @@ class Client(object):
if x > max:
max = x
return max
-
-
diff --git a/func/overlord/cmd_modules/call.py b/func/overlord/cmd_modules/call.py
index b62131f..4828981 100644
--- a/func/overlord/cmd_modules/call.py
+++ b/func/overlord/cmd_modules/call.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
call func method invoker
diff --git a/func/overlord/cmd_modules/copyfile.py b/func/overlord/cmd_modules/copyfile.py
index ff1f148..7950b7b 100644
--- a/func/overlord/cmd_modules/copyfile.py
+++ b/func/overlord/cmd_modules/copyfile.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
copyfile command line
@@ -73,4 +71,3 @@ class CopyFile(client.command.Command):
data = xmlrpclib.Binary(fb)
results = client_obj.run("copyfile", "copyfile", [self.options.remotepath, data,
mode, uid, gid])
-
diff --git a/func/overlord/cmd_modules/listminions.py b/func/overlord/cmd_modules/listminions.py
index 95f0bc9..b34efe4 100644
--- a/func/overlord/cmd_modules/listminions.py
+++ b/func/overlord/cmd_modules/listminions.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-
"""
copyfile command line