https://bugzilla.redhat.com/show_bug.cgi?id=1270176
Bug ID: 1270176
Summary: Python PMAPI pmSetOptionHostList no workie
Product: Fedora
Version: 23
Component: pcp
Assignee: nathans@xxxxxxxxxx
Reporter: myllynen@xxxxxxxxxx
QA Contact: extras-qa@xxxxxxxxxxxxxxxxx
CC: brolley@xxxxxxxxxx, fche@xxxxxxxxxx, lberk@xxxxxxxxxx,
mgoodwin@xxxxxxxxxx, nathans@xxxxxxxxxx,
pcp@xxxxxxxxxxx, scox@xxxxxxxxxx
Description of problem:
With something like:
def connect(self):
""" Establish a PMAPI context to archive, host or local, via args """
self.opts.pmSetOptionHostList("localhost")
self.context = pmapi.pmContext.fromOptions(self.opts, sys.argv)
I get from a Python client (without -h in use):
pcp: too many hosts requested: localhost
Using a list instead of a string won't help and in fact in pmapi.py we see:
def pmSetOptionHostList(self, hosts): # str
return c_api.pmSetOptionHostList(hosts)
The same happens with pmSetOptionArchiveList.
--
You are receiving this mail because:
You are on the CC list for the bug.
Unsubscribe from this bug
https://bugzilla.redhat.com/token.cgi?t=YZX9ghsVAr&a=cc_unsubscribe
|