Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #17508: rtf fails to find rudder api #211

Conversation

peckpeck
Copy link
Member

rtf
print(output)
print("Accepting : " + relay)
# Accept the relay (double quotes must be escaped in call to run)
print(host.run('curl --insecure --header \\"X-API-Token: ' + token + '\\" --request POST https://localhost/rudder//api/latest/nodes/pending/' + relay + ' --data \\"status=accepted\\"'))
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

relay should be the uuid of the node, not its hostname

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the relay raviale contains the uuid see the for loop above

@Normation-Quality-Assistant

OK, merging this PR

@Normation-Quality-Assistant Normation-Quality-Assistant merged commit ff29dbd into Normation:master May 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants