
The result is only displayed when the script is unsuccessful.
import XenAPI
def custom(session,remote_host, power_on_config): result="Power On Not Successful"
for key in power_on_config.keys(): result=result+"
key="+key+"
value="+power_on_config[key] return result
Note:
After creation, save the script in the /etc/xapi.d/plugins with a .py extension.
33