We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8764b58 commit afcfa22Copy full SHA for afcfa22
ibm/config.go
@@ -1054,7 +1054,9 @@ func (c *Config) ClientSession() (interface{}, error) {
1054
if err != nil {
1055
session.vpcErr = fmt.Errorf("Error occured while configuring vpc service: %q", err)
1056
}
1057
- vpcclient.Service.EnableRetries(c.RetryCount, c.RetryDelay)
+ if vpcclient != nil && vpcclient.Service != nil {
1058
+ vpcclient.Service.EnableRetries(c.RetryCount, c.RetryDelay)
1059
+ }
1060
session.vpcAPI = vpcclient
1061
1062
//cosconfigurl := fmt.Sprintf("https://%s.iaas.cloud.ibm.com/v1", c.Region)
0 commit comments