Commit c443329d authored by Daniel Smith's avatar Daniel Smith

Merge pull request #25607 from dagnello/vsphere-cpi-init-logging

Adding error check when read instance id failed
parents 92f34ca8 52811375
......@@ -94,6 +94,9 @@ func readInstanceID(cfg *VSphereConfig) (string, error) {
if err != nil {
return "", err
}
if out.Len() == 0 {
return "", fmt.Errorf("unable to retrieve Instance ID")
}
// Create context
ctx, cancel := context.WithCancel(context.Background())
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment