-
Notifications
You must be signed in to change notification settings - Fork 23.7k
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
timezone module: allow suse linux as target #36719
Conversation
# The key for timezone might be `ZONE` or `TIMEZONE` | ||
# (the former is used in RHEL/CentOS and the latter is used in SUSE linux). | ||
# So check the content of /etc/sysconfig/clock and decide which key to use. | ||
file = open(self.conf_files['name'], mode='r') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you please replace this with
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh, I didn't know that Ansible abandoned python 2.4...cool!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Modified: 0d5f2ac
Look good to me. |
👍 Looks good to me |
This also applies to SLES11SP3 |
What can I do for this to get merged? @indrajitr can you say "shipit" instead of "looks good to me", plz? maybe that invokes ansibot |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
rebuild_merge |
SUMMARY
SUSE Linux uses
/etc/sysconfig/clock
for timezone config like CentOS do, but it's format is differnt: the key isTIMEZONE
rather thanZONE
.To make this module work for SUSE, I added a
if
statement to decide appropriate key.Note: this is reported in and will fixes #36237
Oh, and actually pointed out in my very original pull request too...!
ansible/ansible-modules-extras#2414 (comment)
ISSUE TYPE
COMPONENT NAME
ANSIBLE VERSION