Skip to content

Commit

Permalink
Merge pull request #1517 from pamburus/fix-keypair-ok-codes
Browse files Browse the repository at this point in the history
Fix OK codes in keypair creation
  • Loading branch information
jtopjian committed Mar 22, 2019
2 parents 7851cae + ffae9d8 commit a30f18a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion openstack/compute/v2/extensions/keypairs/requests.go
Expand Up @@ -68,7 +68,7 @@ func Create(client *gophercloud.ServiceClient, opts CreateOptsBuilder) (r Create
return
}
_, r.Err = client.Post(createURL(client), b, &r.Body, &gophercloud.RequestOpts{
OkCodes: []int{200},
OkCodes: []int{200, 201},
})
return
}
Expand Down

0 comments on commit a30f18a

Please sign in to comment.