
+ try: + if len(vsmc) != 1: + logger.error("'%s' returned '%d' instance, excepted only 1", cn, len(vsmc))
This line wraps.
+ return FAIL + + if vsmc[0].InstanceID != "ManagementCapabilities": + print_field_error('InstanceID', vsmc[0].InstanceID, 'ManagementCapabilities')
This line wraps as well.
+ return FAIL
+ vsmc_sync_val = Set(vsmc[0].SynchronousMethodsSupported) + if len(vsmc_sync_val - sync_method_val) != 0: + print_field_error('SynchronousMethodsSupported', vsmc_sync_val, + sync_method_val) + return FAIL
In addition to also checking the len, you'll want to check to make sure the SynchronousMethodsSupported values match the values we're expecting. -- Kaitlin Rupert IBM Linux Technology Center kaitlin@linux.vnet.ibm.com