Added plugin name at the end of the help description for each plugin
This commit is contained in:
parent
7114b4a675
commit
706dbb5da0
@ -16,7 +16,7 @@ class ServiceDelegate(ServiceBase) :
|
||||
|
||||
def get_arguments(cls) :
|
||||
"""Returns an array of information used to construct an argumentparser argument."""
|
||||
return ['-w', '--wifi', 'store_true', "Return wireless connection information about the subject"]
|
||||
return ['-w', '--wifi', 'store_true', "Return wireless connection information about the subject (aruba)"]
|
||||
|
||||
def startup(self) :
|
||||
for requirement in ['host','username','key'] :
|
||||
|
@ -10,7 +10,7 @@ class ServiceDelegate(ServiceBase) :
|
||||
host = None
|
||||
|
||||
def get_arguments(cls) :
|
||||
return ['-n', '--net', 'store_true', "Return network information about the subject"]
|
||||
return ['-n', '--net', 'store_true', "Return network information about the subject (bluecat)"]
|
||||
|
||||
def startup(self) :
|
||||
for requirement in ['host','username','key'] :
|
||||
|
@ -3,11 +3,11 @@ from servicebase import ServiceBase
|
||||
class ServiceDelegate(ServiceBase) :
|
||||
def get_arguments(cls) :
|
||||
"""Returns an array of information used to construct an argumentparser argument."""
|
||||
return [ '-d', '--dns', 'store_true', "Return DNS resolution about the subject" ]
|
||||
return [ '-d', '--dns', 'store_true', "Return DNS resolution about the subject (dns)" ]
|
||||
|
||||
def perform_lookup(self,host_tuple) :
|
||||
return_dict = {}
|
||||
if len(host_tuple[2]) > 0 :
|
||||
if len(host_tuple[2]) > 0 and host_tuple[2][0] != '':
|
||||
return_dict['ipaddresses'] = list(host_tuple[2])
|
||||
if host_tuple[0] and host_tuple[0] != '' :
|
||||
return_dict['hostname'] = host_tuple[0]
|
||||
|
@ -13,7 +13,7 @@ class ServiceDelegate(ServiceBase) :
|
||||
_partition = 'Common'
|
||||
|
||||
def get_arguments(cls) :
|
||||
return ['-cg', '--vip', 'store_true', "Return VIP information about the subject"]
|
||||
return ['-cg', '--vip', 'store_true', "Return VIP information about the subject (f5)"]
|
||||
|
||||
def startup(self) :
|
||||
for requirement in ['hosts','username','key'] :
|
||||
@ -29,7 +29,7 @@ class ServiceDelegate(ServiceBase) :
|
||||
logincandidates = self.choose_host(host_tuple)
|
||||
if logincandidates == {} :
|
||||
# Idk what to do here, do we give up or do we log in to all of them?
|
||||
self.error.append('Unable to find an LB to log into to check host ' + str(host_tuple))
|
||||
self.error.append('Unable to find an LB to log into to check host ' + str(host_tuple[0]))
|
||||
return self.return_payload
|
||||
|
||||
for host in logincandidates.keys() :
|
||||
|
Loading…
Reference in New Issue
Block a user