File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -416,7 +416,7 @@ func getVaultCredsAll(compMap map[string]*componentPowerInfo) error {
416416 //The credstore layer caches creds, so this should be fast.
417417
418418 for k , v := range compMap {
419- un , pw , err = ( ccStore ) .GetControllerCredentials (k )
419+ un , pw , err = ccStore .GetControllerCredentials (k )
420420 if err != nil {
421421 return fmt .Errorf ("ERROR: Can't get BMC creds for '%s': %v" , k , err )
422422 }
@@ -1004,13 +1004,13 @@ func toPCSPowerActions(rfPowerActions []string) []string {
10041004// If it has been awhile since the last update, attempt to
10051005// become the new master.
10061006func getPowerStatusMaster () bool {
1007- lockErr := ( distLocker ) .DistributedTimedLock (distLockMaxTime )
1007+ lockErr := distLocker .DistributedTimedLock (distLockMaxTime )
10081008 if lockErr != nil {
10091009 // Someone else is already doing this check which means we aren't going to be master.
10101010 return false
10111011 }
10121012 defer func () {
1013- unlockErr := ( distLocker ) .Unlock ()
1013+ unlockErr := distLocker .Unlock ()
10141014 if unlockErr != nil {
10151015 glogger .Errorf ("ERROR releasing distributed lock: %v" , unlockErr )
10161016 }
You can’t perform that action at this time.
0 commit comments