mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
* timezone: change warning to debug
Convert warning message to debug when timedatectl found but not usable.
Fixes: #1942
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
* add changelog entry
Signed-off-by: Abhijeet Kasurde <akasurde@redhat.com>
(cherry picked from commit 0bd345bfb0
)
Co-authored-by: Abhijeet Kasurde <akasurde@redhat.com>
This commit is contained in:
parent
766f2dfe46
commit
4df33d26b1
2 changed files with 4 additions and 1 deletions
3
changelogs/fragments/1942_timezone.yml
Normal file
3
changelogs/fragments/1942_timezone.yml
Normal file
|
@ -0,0 +1,3 @@
|
|||
---
|
||||
minor_changes:
|
||||
- timezone - print error message to debug instead of warning when timedatectl fails (https://github.com/ansible-collections/community.general/issues/1942).
|
|
@ -107,7 +107,7 @@ class Timezone(object):
|
|||
if rc == 0:
|
||||
return super(Timezone, SystemdTimezone).__new__(SystemdTimezone)
|
||||
else:
|
||||
module.warn('timedatectl command was found but not usable: %s. using other method.' % stderr)
|
||||
module.debug('timedatectl command was found but not usable: %s. using other method.' % stderr)
|
||||
return super(Timezone, NosystemdTimezone).__new__(NosystemdTimezone)
|
||||
else:
|
||||
return super(Timezone, NosystemdTimezone).__new__(NosystemdTimezone)
|
||||
|
|
Loading…
Reference in a new issue