nrpe.Check._locate_cmd incorrectly parses check_cmd
Bug #1829496 reported by
Alvaro Uria
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Charm Helpers |
New
|
Undecided
|
Unassigned |
Bug Description
if check_cmd is of the type:
check_http -I 127.0.0.1 -p 8193 -u / -s 'OpenStack Exporter'
_locate_cmd will parse it as:
/usr/lib/
We want to preserve quotes when they exist, so as to get:
/usr/lib/
Fix is:
- command += " " + " ".join(parts[1:])
+ command += " " + " ".join(
To post a comment you must log in.
PR at https:/ /github. com/juju/ charm-helpers/ pull/325