Skip to content

Commit a3de689

Browse files
deepakibmshkantare
authored andcommitted
enable retry for vpcclient
1 parent 43dfa2e commit a3de689

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

ibm/config.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1065,6 +1065,9 @@ func (c *Config) ClientSession() (interface{}, error) {
10651065
if err != nil {
10661066
session.vpcErr = fmt.Errorf("Error occured while configuring vpc service: %q", err)
10671067
}
1068+
if vpcclient != nil && vpcclient.Service != nil {
1069+
vpcclient.Service.EnableRetries(c.RetryCount, c.RetryDelay)
1070+
}
10681071
session.vpcAPI = vpcclient
10691072

10701073
//cosconfigurl := fmt.Sprintf("https://%s.iaas.cloud.ibm.com/v1", c.Region)

0 commit comments

Comments
 (0)