summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--func/SSLConnection.py4
-rwxr-xr-xfunc/certmaster.py2
-rwxr-xr-xfunc/minion/server.py9
-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
7 files changed, 7 insertions, 25 deletions
diff --git a/func/SSLConnection.py b/func/SSLConnection.py
index 525489d..98ed8a0 100644
--- a/func/SSLConnection.py
+++ b/func/SSLConnection.py
@@ -1,5 +1,3 @@
-#!/usr/bin/python
-#
# Higher-level SSL objects used by rpclib
#
# Copyright (c) 2002 Red Hat, Inc.
@@ -152,6 +150,7 @@ class SSLConnection:
raise e
return None
+
class PlgFileObject(socket._fileobject):
def close(self):
"""
@@ -164,4 +163,3 @@ class PlgFileObject(socket._fileobject):
self._sock.close()
finally:
self._sock = None
-
diff --git a/func/certmaster.py b/func/certmaster.py
index e8c046d..fa72493 100755
--- a/func/certmaster.py
+++ b/func/certmaster.py
@@ -225,8 +225,6 @@ def main(argv):
serve(cm)
-
if __name__ == "__main__":
#textdomain(I18N_DOMAIN)
main(sys.argv)
-
diff --git a/func/minion/server.py b/func/minion/server.py
index ef9e112..cd353b9 100755
--- a/func/minion/server.py
+++ b/func/minion/server.py
@@ -1,5 +1,4 @@
#!/usr/bin/python
-
"""
func
@@ -54,7 +53,7 @@ class XmlRpcInterface(object):
self.__setup_handlers()
# need a reference so we can log ip's, certs, etc
-# self.server = server
+ # self.server = server
def __setup_handlers(self):
@@ -101,8 +100,6 @@ class XmlRpcInterface(object):
raise codes.InvalidMethodException
-
-
class FuncApiMethod:
"""
@@ -144,7 +141,6 @@ class FuncApiMethod:
return rc
-
def serve():
"""
@@ -243,6 +239,7 @@ class FuncSSLXMLRPCServer(AuthedXMLRPCServer.AuthedSSLXMLRPCServer,
return False
+
def main(argv):
"""
@@ -261,8 +258,8 @@ def main(argv):
print >> sys.stderr, 'error: %s' % e
sys.exit(1)
-# ======================================================================================
+# ======================================================================================
if __name__ == "__main__":
textdomain(I18N_DOMAIN)
main(sys.argv)
diff --git a/func/overlord/client.py b/func/overlord/client.py
index 6bebaf8..d8f7bb3 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,
@@ -263,5 +261,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