Skip to content

Commit 6dbb97f

Browse files
authored
Default dataStore is returned the name instead the inventoryPath
On version 4.13 if only one dataStore is detected, it sets the configuration to the name instead to the path
1 parent 64e4797 commit 6dbb97f

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)