Skip to content

Commit

Permalink
Merge pull request #7433 from ethan-daocloud/patch-6
Browse files Browse the repository at this point in the history
ali.go: cleanup error words in messages
  • Loading branch information
k8s-ci-robot authored Aug 20, 2019
2 parents 9faf01a + 129dd69 commit ac208d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/resources/ali/ali.go
Original file line number Diff line number Diff line change
Expand Up @@ -454,7 +454,7 @@ func DeleteRoleRam(cloud fi.Cloud, r *resources.Resource) error {
}
response, err := c.RamClient().ListPoliciesForRole(roleQueryRequest)
if err != nil {
return fmt.Errorf("err listing Policices for role:%v", err)
return fmt.Errorf("err listing Policies for role:%v", err)
} else {
if len(response.Policies.Policy) != 0 {
for _, policy := range response.Policies.Policy {
Expand Down Expand Up @@ -512,7 +512,7 @@ func (d *clusterDiscoveryALI) ListSSHKey() ([]*resources.Resource, error) {
func DeleteSSHKey(cloud fi.Cloud, r *resources.Resource) error {
c := cloud.(aliup.ALICloud)
region := common.Region(c.Region())
klog.V(2).Infof("Removing SSHKsy %s", r.Name)
klog.V(2).Infof("Removing SSHKey %s", r.Name)

deleteKeyPairsArgs := &ecs.DeleteKeyPairsArgs{
RegionId: region,
Expand Down

0 comments on commit ac208d2

Please sign in to comment.