Merge ~jfguedez/charm-nrpe:bug/1967210 into charm-nrpe:master

Proposed by Jose Guedez
Status: Merged
Approved by: Xav Paice
Approved revision: 0dd488f98f8256ccc1e631810cf20196e49a80f1
Merged at revision: 602b11b8464af1ec7a565ea8668bbbba2ddbdcfd
Proposed branch: ~jfguedez/charm-nrpe:bug/1967210
Merge into: charm-nrpe:master
Diff against target: 35 lines (+4/-4)
3 files modified
files/plugins/cron_cis_audit.py (+2/-2)
mod/charmhelpers (+1/-1)
tests/unit/test_plugins_cis_audit.py (+1/-1)
Reviewer Review Type Date Requested Status
Xav Paice (community) Approve
🤖 prod-jenkaas-bootstack (community) continuous-integration Approve
BootStack Reviewers Pending
Review via email: mp+418004@code.launchpad.net

Commit message

cis-audit: update cronjob default max-age, to avoid race condition

Closes-Bug: #1967210

To post a comment you must log in.
Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :

A CI job is currently in progress. A follow up comment will be added when it completes.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

This merge proposal is being monitored by mergebot. Change the status to Approved to merge.

Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Unable to determine commit message from repository - please click "Set commit message" and enter the commit message manually.

Revision history for this message
🤖 prod-jenkaas-bootstack (prod-jenkaas-bootstack) wrote :
review: Approve (continuous-integration)
Revision history for this message
Xav Paice (xavpaice) wrote :

lgtm

review: Approve
Revision history for this message
🤖 Canonical IS Merge Bot (canonical-is-mergebot) wrote :

Change successfully merged at revision 602b11b8464af1ec7a565ea8668bbbba2ddbdcfd

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/files/plugins/cron_cis_audit.py b/files/plugins/cron_cis_audit.py
2index 706337b..50693fb 100755
3--- a/files/plugins/cron_cis_audit.py
4+++ b/files/plugins/cron_cis_audit.py
5@@ -88,8 +88,8 @@ def parse_args(args):
6 "--max-age",
7 "-a",
8 type=int,
9- help="maximum age (h) of audit result file before alerting (default 170)",
10- default=170,
11+ help="maximum age (h) of result file before running the audit (default 168)",
12+ default=168,
13 )
14 profile_options = PROFILES + [""]
15 parser.add_argument(
16diff --git a/mod/charmhelpers b/mod/charmhelpers
17index 446cbfd..0cf9358 160000
18--- a/mod/charmhelpers
19+++ b/mod/charmhelpers
20@@ -1 +1 @@
21-Subproject commit 446cbfdad83e15b5cfd20f862d3c3b5b1956b998
22+Subproject commit 0cf935879e675a54269567458e1e928ea86a4c64
23diff --git a/tests/unit/test_plugins_cis_audit.py b/tests/unit/test_plugins_cis_audit.py
24index e9a9319..7fd02da 100644
25--- a/tests/unit/test_plugins_cis_audit.py
26+++ b/tests/unit/test_plugins_cis_audit.py
27@@ -94,7 +94,7 @@ class TestCronCisAudit(TestCase):
28 """Test the default parsing behavior of the argument parser."""
29 # test empty parameters
30 args = cron_cis_audit.parse_args([])
31- self.assertEqual(args, argparse.Namespace(cis_profile="", max_age=170))
32+ self.assertEqual(args, argparse.Namespace(cis_profile="", max_age=168))
33
34 # test setting parameters
35 args = cron_cis_audit.parse_args(["-a 1", "-p=level2_workstation"])

Subscribers

People subscribed via source and target branches

to all changes: