-
-
Notifications
You must be signed in to change notification settings - Fork 237
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
Facts page has issue with complicated Fact values #73
Comments
What is the issue? The code line is barely legible and I can't actually deduce from it what is going on. A screenshot would go a long way here 😄. |
Sorry about that, here you go: Great tool by the way! |
Wow. Actually, I'd say those facts are broken. The fact name suddenly contains HTML, that's not right. You're using the What does To clarify, I would expect |
The fact is correct and contains a html page.
|
Well, having a Fact name show up with all the HTML is certainly not right so something weird is going on. If you try the following, on a node that runs PuppetDB:
Feel free to scrub the output for sensitive things. The second curl command should give you a list of Facts with their name and their value. Your fact should look like this: {
"certname" : "a_node_with_that_fact",
"name" : "mwapp_entitlement_0_status",
"value" : "<html><head><title>apache tomcat/6.0.26 - error report</title><style><!--h1 {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font-size:22px;} h2 {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font-size:16px;} h3 {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font-size:14px;} body {font-family:tahoma,arial,sans-serif;color:black;background-color:white;} b {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;} p {font-family:tahoma,arial,sans-serif;background:white;color:black;font-size:12px;}a {color : black;}a.name {color : black;}hr {color : #525d76;}--></style> </head><body><h1>http status 401 - </h1><hr size="1" noshade="noshade"><p><b>type</b> status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>this request requires http authentication ().</u></p><hr size="1" noshade"
}, What I'm betting on is that we'll see the {
"certname" : "a_node_with_that_fact",
"name" : "mwapp_entitlement_0_status=<html><head><title>apache tomcat/6.0.26 - error report</title><style><!--h1 {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font-size:22px;} h2 {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font-size:16px;} h3 {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;font-size:14px;} body {font-family:tahoma,arial,sans-serif;color:black;background-color:white;} b {font-family:tahoma,arial,sans-serif;color:white;background-color:#525d76;} p {font-family:tahoma,arial,sans-serif;background:white;color:black;font-size:12px;}a {color : black;}a.name {color : black;}hr {color : #525d76;}--></style> </head><body><h1>http status 401 - </h1><hr size="1" noshade="noshade"><p><b>type</b> status report</p><p><b>message</b> <u></u></p><p><b>description</b> <u>this request requires http authentication ().</u></p><hr size="1" noshade",
"value" : ""
}, |
Alright, will get back to you tomorrow with this output |
So in the end it was indeed a bug in the fact name generation. Thanks for the time anyway and keep up the good work! |
Glad I could help! |
* docs/api.rst: Updating documentation with the new API model. The previous documentation has not been changed with the 0.1.1 release. * pypuppetdb/types.py: Fixing tests about line length. Shortening the length of the documentation string lines to fix failing tests.
This causes all kinds of havoc on the /facts page:
The text was updated successfully, but these errors were encountered: