Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upMade UTC timezone explicit in common/init.sls. #439
Conversation
| @@ -40,6 +40,9 @@ servo: | |||
| - shell: /bin/bash | |||
| - home: {{ common.servo_home }} | |||
| Etc/UTC: | |||
This comment has been minimized.
This comment has been minimized.
|
Please also add a test for this. I think running the Add a new directory |
|
I've added the test and simplified to just UTC. |
| @@ -53,6 +53,6 @@ else | |||
| # Only run tests against the new configuration | |||
| # TODO: don't hard-code this | |||
| if [[ "${SALT_NODE_ID}" == "servo-master1" ]]; then | |||
| ./test.py sls.buildbot.master sls.homu sls.nginx | |||
| ./test.py sls.buildbot.master sls.common.timezone sls.homu sls.nginx | |||
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jul 15, 2016
Member
Two things:
- this can be just
sls.common, all of the test files in that dir will get run automatically. - we want to run the common tests on all nodes, not just
servo-master1, so that should happen outside the conditional.
|
|
||
|
|
||
| def run(): | ||
| command = "date | grep -v UTC" |
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jul 15, 2016
Member
Instead of using pipes and an extra grep process, let's just look for UTC in the output of the date command inside Python.
| stdout=subprocess.PIPE, | ||
| stderr=subprocess.PIPE, | ||
| universal_newlines=True, | ||
| shell=True) |
This comment has been minimized.
This comment has been minimized.
aneeshusa
Jul 15, 2016
Member
Please remove shell=True, it can cause security problems (and also spawns an extra process).
|
@RowanEB Are you still planning on finishing this up? |
|
@aneeshusa @KiChjang I'm interested in continuing the work of @RowanEB if that's ok for you ? (as he doesn't respond in a long time) |
|
@charlesvdv please go ahead! |
Use UTC timezone Fix the issue #303 and follow up of #439 PR. I'm not sure about the spot to put the ```sls.common``` tests. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/569) <!-- Reviewable:end -->
ghost commentedJul 15, 2016
•
edited by larsbergstrom
Relevant to #303.
This change is