Added the status 403 catching after post request
Change-Id: Iaaddf05f3efecd6064f0b2d598eefaf35af8171f Closes-Bug: #1305017
This commit is contained in:
parent
51824cdcda
commit
4cb2bb5375
|
@ -558,7 +558,7 @@ begin
|
||||||
resp = agent.post
|
resp = agent.post
|
||||||
# We must not log 409 as error, after node is provisioned there will be no
|
# 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
|
# /etc/nailgun_uid, it will be created after put request
|
||||||
if resp.status == 409
|
if [409, 403].include? resp.status
|
||||||
resp = agent.put
|
resp = agent.put
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue