def resource_error(func):
    def decorator(*args, **kwargs):
        try: return func(*args, **kwargs)
        except:
            failure = Failure()
            msg = getException(failure)
            msg += ': ' + failure.getErrorMessage()
            return NoResource(msg)
    return decorator
Attach a root volume to the VM instance.
dataset/ETHPy150Open OrbitzWorldwide/droned/droned/services/remote_config.py/resource_error--crossover with--dataset/ETHPy150Open BU-NU-CLOUD-SP16/Trusted-Platform-Module-nova/nova/virt/vmwareapi/volumeops.py/VMwareVolumeOps.attach_root_volume