def blade_wait_for_availability_done_cb(mce): log.debug("blade_wait_for_availability_done_cb") if mce.mo.availability == 'available': sp_delete() ucs_logout(handle) global end_script end_script = True
def main(): try: global handle handle = ucs_login() #get faults _get_faults(handle) # get inventory #_get_inventory(handle) ucs_logout(handle) except: ucs_logout(handle) raise
def main(): try: global handle handle = ucs_login() # ########################################### # Create the SP from template # ########################################### mo_list = create_sp_from_template() if mo_list: for mo in mo_list: print(mo.dn) # ########################################### # Delete_sp_created_from_template # ########################################### delete_sp_created_from_template() ucs_logout(handle) except: ucs_logout(handle) raise