summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-04-28 22:29:16 +0200
committerPaul C. Buetow (mars.fritz.box) <paul@buetow.org>2014-04-28 22:29:16 +0200
commit411c5f6cef8886eb59636eea878b486a89f69055 (patch)
tree0abcee3358fdb27a6d783456f697aaf78be1cd57
parent2bd0e7af6c97040140d38c42066f8146091f0d02 (diff)
some restyle
-rwxr-xr-xsrc/fapi6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/fapi b/src/fapi
index b09e6a6..e1628d6 100755
--- a/src/fapi
+++ b/src/fapi
@@ -41,8 +41,7 @@ class FapiBase(object):
''' Prints an informational message to stderr '''
if self._args.n:
- reset = ''
- color = ''
+ color = reset = ''
else:
reset = '' if color == '' else Style.RESET_ALL
@@ -59,6 +58,7 @@ class FapiBase(object):
pp = pprint.PrettyPrinter(indent=4)
pp.pprint(result)
+
def print_version(self):
''' Prints out the version '''
@@ -188,6 +188,7 @@ class ArgumentParser(FapiBase):
return args
+
class Fapi(FapiBase):
''' The main F5 API Tool Object '''
@@ -289,6 +290,7 @@ class Fapi(FapiBase):
self.verbose("Looked \'%s\' up to name:\'%s\', ip:\'%s\', port:\'%s\'" % (what, name, ip, port))
return (name, ip, port)
+
def __do_node(self, f5):
''' Do stuff concerning nodes '''