VMware vROPs custom resourceIdentifiers API Error 1501 with Nagini.py

When pushing custom resource kinds using the vROPs Python nagini client’s find_create_resource_push_data() method, and you include custom resourceIdentifiers, you might get an error:

You can fix this by creating your own version of the find_create_resource_push_data() and find_create_resource_with_adapter_key() methods.  You need to handle the API exception, and treat the error condition as if your call to find the resource succeeded but returned no results.

This code is just an incomplete example.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Recent Posts



GiottoPress by Enrique Chavez