Remove verbose code in VCP

This commit is contained in:
Ryo Nishikawa 2018-07-27 10:56:10 -07:00
parent 059daa6de9
commit 3c50f3d447

View File

@ -716,10 +716,7 @@ func (vs *VSphere) InstanceShutdownByProviderID(ctx context.Context, providerID
glog.Errorf("Failed to check whether node %q is active. err: %+v.", nodeName, err)
return false, err
}
if isActive {
return false, nil
}
return true, nil
return !isActive, nil
}
// InstanceID returns the cloud provider ID of the node with the specified Name.