Skip to content
This repository has been archived by the owner on Nov 9, 2020. It is now read-only.

Commit

Permalink
Fixes issue #1508 (#1516)
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Chen committed Jun 29, 2017
1 parent 0caae1c commit c8a94d4
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/utils/admincli/vmgroupmgmt.go
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,12 @@ func SetVolumeSizeForVMgroup(ip, name, ds, msize, tsize string) (string, error)

// ConfigInit - Initialize the (local) Single Node Config DB
func ConfigInit(ip string) (string, error) {
dbMode := GetDBmode(ip)
if dbMode != admincli.DBNotConfigured {
log.Printf("DB is already configured on esx [%s]. Removing the DB...\n", ip)
ConfigRemove(ip) // Ignore the error
}

log.Printf("Initializing the SingleNode Config DB on esx [%s] \n", ip)
return ssh.InvokeCommand(ip, admincli.InitLocalConfigDb)
}
Expand Down

0 comments on commit c8a94d4

Please sign in to comment.