Passing an array as property with pywsman

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Passing an array as property with pywsman

Imre Farkas

I would like to pass an array as property like this:
options = pywsman.ClientOptions()
options.add_property('source', ['HardDisk', 'Network'])
doc = client.invoke(options, resource_uri, 'ChangeBootOrderByInstanceID')

which should result in something similar:

This solution fails because the value parameter of the add_property
function is not a string:
TypeError: in method 'ClientOptions_add_property', argument 3 of type
'char const *'

How to pass an array correctly?

Imre Farkas

Openwsman-devel mailing list
[hidden email]