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

Bug 4661/trigger promise gen on prop change (file retention, agent interval) #488

Conversation

VinceMacBuche
Copy link
Member

@VinceMacBuche
Copy link
Member Author

#487 needs to be merged before (and put back in master)

@VinceMacBuche
Copy link
Member Author

rebased on master! after #487 merge

@@ -497,6 +498,10 @@ class PropertiesManagement extends DispatchSnippet with Loggable {
S.error("cfagentScheduleMessage", e.messageChain)

case Full(success) =>

// start a promise generation, Since we check if there is change to save, if we got there it mean that we need to redeploy
val modId = ModificationId(uuidGen.newUuid)
Copy link
Member

Choose a reason for hiding this comment

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

I'm wondering if i won't be better to have a method
def startNewPolicyGeneration() = asyncDeploymentAgent ! AutomaticStartDeployment(ModificationId(configService.stringUuidBuilder.newUuid), CurrentUser.getActor)

And just call that everywhere ? That's several times the exact same line removed.

Copy link
Member

Choose a reason for hiding this comment

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

It can go only on 2.10, no pb to not have it in 2.9.

Copy link
Member Author

Choose a reason for hiding this comment

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

good idea!

ncharles added a commit that referenced this pull request Mar 22, 2014
…en_on_prop_change

Bug 4661/trigger promise gen on prop change (file retention, agent interval)
@ncharles ncharles merged commit 03ca97a into Normation:master Mar 22, 2014
@VinceMacBuche VinceMacBuche deleted the bug_4661/trigger_promise_gen_on_prop_change branch March 3, 2015 14:53
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