mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-24 03:11:24 -07:00
[PR #5933/b1d9507c backport][stable-6] Fix pylint errors (#5937)
Fix pylint errors (#5933)
* Fix pylint errors.
* Also adjust to https://github.com/ansible/ansible/pull/79909.
(cherry picked from commit b1d9507cd2
)
Co-authored-by: Felix Fontein <felix@fontein.de>
This commit is contained in:
parent
ead9524dc3
commit
d8cf32e6c4
9 changed files with 12 additions and 9 deletions
|
@ -356,6 +356,7 @@ class NosystemdTimezone(Timezone):
|
|||
def __init__(self, module):
|
||||
super(NosystemdTimezone, self).__init__(module)
|
||||
# Validate given timezone
|
||||
planned_tz = ''
|
||||
if 'name' in self.value:
|
||||
tzfile = self._verify_timezone()
|
||||
planned_tz = self.value['name']['planned']
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue