xmlrpclib.Fault Could not find translator for class java.lang.Integer to interface java.util.Map when using deleteSnapshots API call in Red Hat Satellite 5.5
Issue
I am trying to use the deleteSnapshots API to delete all the snapshots for a server and am getting the following error:
xmlrpclib.Fault:
I am passing it a valid session key and system id. Below is the code:
#!/usr/bin/python
import xmlrpclib
import sys
#serverid = sys.argv[1]
#ServerID = int(serverid)
ServerID = int(1010112345)
SATELLITE_URL = "http://examplesatellite.com/rpc/api"
SATELLITE_LOGIN = "admin"
SATELLITE_PASSWORD = "******"
client = xmlrpclib.Server(SATELLITE_URL, verbose=0)
key = client.auth.login(SATELLITE_LOGIN, SATELLITE_PASSWORD)
client.system.provisioning.snapshot.deleteSnapshots(key,ServerID)
client.auth.logout(key)
Environment
Red Hat Satellite 5.5
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.