Skip to content

Commit 099a0d8

Browse files
Merge pull request openshift#7261 from agonzalezrh/patch-1
Default dataStore is returned the name instead the inventoryPath
2 parents fa82fcc + 6dbb97f commit 099a0d8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/asset/installconfig/vsphere/vsphere.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ func getDataStore(ctx context.Context, path string, finder Finder, client *vim25
271271
}
272272
if len(dataStores) == 1 {
273273
logrus.Infof("Defaulting to only available datastore: %s", dataStores[0].InventoryPath)
274-
return dataStores[0].Name(), nil
274+
return dataStores[0].InventoryPath, nil
275275
}
276276

277277
dataStoreChoices := make([]string, 0, len(dataStores))

0 commit comments

Comments
 (0)