Red Hat Bugzilla – Bug 961877
RFE: DiscoveryBoss.manuallyAddResource CLI call should use default plugin configuration when possible
Last modified: 2013-06-28 16:16:40 EDT
Created attachment 746211 [details]
patch (for 4.5.1)
DiscoveryBoss.manuallyAddResource should use default plugin configuration keys when not indicated.
Alternatively, the CLI should support obtaining the default plugin configuration, allowing the settings to be overwritten on the CLI side.
This is what I came up with (attached).
Created attachment 763101 [details]
Patch for 7e512faae456
thanks for the patch - I still need to try the implications better -- especially in cases when there are more than one template and the user choose one of those and only supplied one of the values - here the other values would need to be taken from the other template instead of the default ?
Yeah, I'm not sure what to do about multiple configuration templates. I forgot that RHQ had them :-)
Since the client can pull the configuration template using the CLI (which I didn't figure out), might make sense to not have this change.
Or maybe it would be good to have an overloaded method?
DiscoveryBoss.manuallyAddResource(resourceType.id, parent.id, config, /*new*/ templateId)