Added the status 403 catching after post request

Change-Id: Iaaddf05f3efecd6064f0b2d598eefaf35af8171f
Closes-Bug: #1305017
This commit is contained in:
Kamil Sambor 2014-07-24 23:29:37 +02:00
parent 51824cdcda
commit 4cb2bb5375
1 changed files with 1 additions and 1 deletions

View File

@ -558,7 +558,7 @@ begin
resp = agent.post
# We must not log 409 as error, after node is provisioned there will be no
# /etc/nailgun_uid, it will be created after put request
if resp.status == 409
if [409, 403].include? resp.status
resp = agent.put
end
else