Module: check_mk
Branch: master
Commit: c5a32ba3c3d6549711997f07532762383947d44c
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c5a32ba3c3d654…
Author: Florian Kromer <fk(a)mathias-kettner.de>
Date: Thu May 2 11:03:28 2019 +0200
agent_hp_msa: Return command line as list
Change-Id: I9d154be91b7840a56cf77efeb162068ca559ccdc
---
checks/agent_hp_msa | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/checks/agent_hp_msa b/checks/agent_hp_msa
index 543dc20..946d254 100644
--- a/checks/agent_hp_msa
+++ b/checks/agent_hp_msa
@@ -26,13 +26,7 @@
def agent_hp_msa_arguments(params, hostname, ipaddress):
- args = ''
-
- args += " -u " + quote_shell_string(params["username"])
- args += " -p " + quote_shell_string(params["password"])
-
- args += " " + quote_shell_string(ipaddress)
- return args
+ return ['-u', params["username"], '-p',
params["password"], ipaddress]
special_agent_info['hp_msa'] = agent_hp_msa_arguments