[Spacewalk-list] Sending array throught spacecmd and api.

Stepan Rogov rogov at post.km.ru
Mon Nov 26 10:45:27 UTC 2012


Hi.

I'm trying to add a custom value for the system via spacecmd.

spacecmd {SSM:0}> api -A "1000010910,{Responsible=SomeHuman}" 
system.setCustomValues

In the API, it has the following description:
struct - Map of custom labels to custom values

Get the following error in the logs.

[2012-11-26 14:34:16,519] ERROR - REQUESTED FROM: 127.0.0.1 CALL: 
system.setCustomValues(467651x823e88de10337bb91cb88a134b639b18, 
1000010910, {Responsible=SomeHuman}) CALLER: (admin) TIME: 0.016 seconds
com.redhat.rhn.common.translation.TranslationException: Could not find 
translator for class java.lang.String to interface java.util.Map

How it is correct to send this  data structure?




More information about the Spacewalk-list mailing list