-
Notifications
You must be signed in to change notification settings - Fork 28
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
fix cli set timezone doesn't work #21
Conversation
@miq-bot add-label wip |
@miq-bot remove-label wip |
@@ -112,6 +112,6 @@ def configure_date_time | |||
logger.error("Failed to apply time configuration: #{e.message}") | |||
false | |||
end | |||
end # class TimezoneConfiguration | |||
end # class DateTimeConfiguration |
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.
Why change this in this PR?
@@ -8,8 +8,9 @@ class TimezoneConfiguration | |||
attr_reader :current_timzone | |||
attr_accessor :new_timezone | |||
|
|||
def initialize(region_timezone_string) | |||
def initialize(region_timezone_string, region_new_timezone_string = "") |
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.
Instead of adding a parameter here, couldn't the cli just set the new_timzone
using the attr_accessor?
Then in a follow up maybe we can remove the current timezone from the parameter here because it doesn't seem to be used.
81987f8
to
36e14e2
Compare
Checked commits ailisp/manageiq-appliance_console@36e14e2~...bf3f65c with ruby 2.3.3, rubocop 0.47.1, haml-lint 0.20.0, and yamllint 1.10.0 |
Issue:
Set timezone in cli doesn't work, because the new timezone parameter isn't sent to
TimezoneConfiguration
class. It's fixed now.BZ:
https://bugzilla.redhat.com/show_bug.cgi?id=1517897
\cc @carbonin, @yrudman, @gtanzillo
@miq-bot add-label bug