Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
K
k3s
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Jacklull
k3s
Commits
9c591b0c
Unverified
Commit
9c591b0c
authored
Jan 16, 2018
by
Anshul Sharma
Committed by
GitHub
Jan 16, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Replace error string with const
parent
1dbb4197
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
aws_loadbalancer.go
pkg/cloudprovider/providers/aws/aws_loadbalancer.go
+1
-2
No files found.
pkg/cloudprovider/providers/aws/aws_loadbalancer.go
View file @
9c591b0c
...
@@ -1375,8 +1375,7 @@ func (c *Cloud) ensureSSLNegotiationPolicy(loadBalancer *elb.LoadBalancerDescrip
...
@@ -1375,8 +1375,7 @@ func (c *Cloud) ensureSSLNegotiationPolicy(loadBalancer *elb.LoadBalancerDescrip
if
err
!=
nil
{
if
err
!=
nil
{
if
aerr
,
ok
:=
err
.
(
awserr
.
Error
);
ok
{
if
aerr
,
ok
:=
err
.
(
awserr
.
Error
);
ok
{
switch
aerr
.
Code
()
{
switch
aerr
.
Code
()
{
case
"PolicyNotFound"
:
case
elb
.
ErrCodePolicyNotFoundException
:
// TODO change from string to `elb.ErrCodePolicyNotFoundException` once the AWS SDK is updated
default
:
default
:
return
fmt
.
Errorf
(
"error describing security policies on load balancer: %q"
,
err
)
return
fmt
.
Errorf
(
"error describing security policies on load balancer: %q"
,
err
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment