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 #7279: Add generic methods to create conditions #254

Conversation

peckpeck
Copy link
Member

@peckpeck
Copy link
Member Author

Original PR #234

@ncharles
Copy link
Member

i'm waiting for you tu update #247 and apply same correction here before reviewing it

@peckpeck
Copy link
Member Author

One #247 is merged i will rebase this one, which will make much shorter.

@ncharles
Copy link
Member

could you rebase it now that #247 is merged ?

@peckpeck
Copy link
Member Author

PR updated

@peckpeck peckpeck force-pushed the ust_7279/add_generic_methods_to_create_conditions branch from 0455b7b to 2d6b16d Compare October 22, 2015 08:29
@peckpeck
Copy link
Member Author

PR updated

@peckpeck peckpeck force-pushed the ust_7279/add_generic_methods_to_create_conditions branch from 2d6b16d to 3e44962 Compare October 22, 2015 08:40
@@ -0,0 +1,63 @@
#######################################################
#
# Launch the /bin/date command
Copy link
Member

Choose a reason for hiding this comment

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

wrong comment

@ncharles
Copy link
Member

except from comment issue, everything looks good
can you fix the comments @peckpeck ?

@peckpeck peckpeck force-pushed the ust_7279/add_generic_methods_to_create_conditions branch from 3e44962 to 5d4af76 Compare October 28, 2015 09:31
@peckpeck
Copy link
Member Author

PR updated

@ncharles
Copy link
Member

@peckpeck i don't see the changes

@peckpeck
Copy link
Member Author

PR updated
Sorry, it was just a rebase that made the automatic comment

@peckpeck peckpeck force-pushed the ust_7279/add_generic_methods_to_create_conditions branch 2 times, most recently from a8cddd4 to d3ea703 Compare October 28, 2015 10:48
@peckpeck
Copy link
Member Author

PR updated

if [ ! -x "$CF_KEY" ]; then
echo "ERROR can't find cf-key. Are you sure you're running this from OBJDIR or OBJDIR/tests/acceptance? Check cf-key = '$CF_KEY'"
exit 1
fi
Copy link
Member

Choose a reason for hiding this comment

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

this should go in another PR

@peckpeck
Copy link
Member Author

PR updated

@peckpeck peckpeck force-pushed the ust_7279/add_generic_methods_to_create_conditions branch from d3ea703 to 02bdcf0 Compare October 28, 2015 13:55
"class_prefix" string => canonify(join("_", "this.callers_promisers"));
"args" slist => { "${condition_prefix}", "${command}", "${true_codes}", "${false_codes}" };

"true_list" slist => string_split("${true_codes}", "\s*,\s*", "256");
Copy link
Member

Choose a reason for hiding this comment

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

you really don't want to use splitstring ?

@peckpeck
Copy link
Member Author

PR updated

@peckpeck peckpeck force-pushed the ust_7279/add_generic_methods_to_create_conditions branch from 02bdcf0 to ddc9f8f Compare October 28, 2015 13:59
ncharles added a commit that referenced this pull request Nov 4, 2015
…_create_conditions

Fixes #7279: Add generic methods to create conditions
@ncharles ncharles merged commit 78cf363 into Normation:master Nov 4, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants