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

leading spaces on param key is a PITA to delete #1

Open
SyBernot opened this issue Dec 5, 2014 · 2 comments
Open

leading spaces on param key is a PITA to delete #1

SyBernot opened this issue Dec 5, 2014 · 2 comments

Comments

@SyBernot
Copy link

SyBernot commented Dec 5, 2014

we had some copy pasta that allowed a leading space in the param key outputting ' key'=>value which made things mad and it was impossible to remove the pair from the ONA interface. I'm guessing params shouldn't be able to have leading whitespace because YAML but I haven't had a chance to look into the spec.

I intend to fix it, just really pressed for time right now so this is my placeholder :)

@mattpascoe
Copy link
Member

good call.. I have need to start updating this old module myself so hopefully I'll be fixing many other issues with it. :)

@SyBernot
Copy link
Author

I have some other issues with this module

When deleting a host the classes params and environment associated with that host should be cleaned up too.

set primary keys on tables to ensure database sanity (we had a couple dupes in there, still not clear as to why
This alteration seems to be working
ALTER TABLE puppet_node_classes ADD PRIMARY KEY ( host_id , name ) ;
ALTER TABLE puppet_node_environments ADD PRIMARY KEY ( host_id ) ;
ALTER TABLE puppet_node_parameters ADD PRIMARY KEY ( host_id , name , value ) ;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants