heal: Print heal command appropriately without export path. (#3208)

Fixes #3204
This commit is contained in:
Harshavardhana
2016-11-09 10:50:14 -08:00
committed by GitHub
parent ea579f5b69
commit 3e67bfcc88
5 changed files with 96 additions and 17 deletions
+1 -5
View File
@@ -190,10 +190,6 @@ func retryFormattingDisks(firstDisk bool, endpoints []*url.URL, storageDisks []S
if len(endpoints) == 0 {
return errInvalidArgument
}
firstEndpoint := endpoints[0]
if firstEndpoint == nil {
return errInvalidArgument
}
if storageDisks == nil {
return errInvalidArgument
}
@@ -239,7 +235,7 @@ func retryFormattingDisks(firstDisk bool, endpoints []*url.URL, storageDisks []S
// Validate formats load before proceeding forward.
err := genericFormatCheck(formatConfigs, sErrs)
if err == nil {
printHealMsg(firstEndpoint.String(), storageDisks, printOnceFn())
printHealMsg(endpoints, storageDisks, printOnceFn())
}
return err
case WaitForQuorum: