[Pkg-salt-team] Bug#962514: salt-common 3000.2+dfsg1-1

Stanislav Tokos tokos at ipp.cas.cz
Tue Jun 9 07:11:48 BST 2020


Package: salt-common
Version: 3000.2+dfsg1-1

Error:
  __saltstack_version__ = SaltStackVersion.from_last_named_version()
   File "/usr/lib/python3/dist-packages/salt/version.py", line 292, in
from_last_named_version
    return cls.from_name(
   File "/usr/lib/python3/dist-packages/salt/version.py", line 288, in
from_name
     return cls(*cls.LNAMES[name.lower()])
   File "/usr/lib/python3/dist-packages/salt/version.py", line 215, in
__init__
    if isinstance(major, string_types):
 NameError: name 'string_types' is not defined

 File "/usr/lib/python3/dist-packages/salt/minion.py", line 1279, in
_post_master_init
    self.schedule = salt.utils.schedule.Schedule(
  File "/usr/lib/python3/dist-packages/salt/utils/schedule.py", line 99, in
__new__
    instance.__singleton_init__(opts, functions,
  File "/usr/lib/python3/dist-packages/salt/utils/schedule.py", line 152,
in __singleton_init__
    self.time_offset = self.functions.get('timezone.get_offset', lambda:
'0000')()
  File "/usr/lib/python3/dist-packages/salt/modules/timezone.py", line 234,
in get_offset
    if 'AIX' not in __grains__['os_family']:
  File "/usr/lib/python3/dist-packages/salt/utils/context.py", line 236, in
__getitem__
    return self._dict()[key]
KeyError: 'os_family'

I am attaching a fix patch. I have already built and tested salt-common.

Regards

Stanislav Tokos
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-salt-team/attachments/20200609/004babd0/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: os_version.patch
Type: text/x-patch
Size: 3116 bytes
Desc: not available
URL: <http://alioth-lists.debian.net/pipermail/pkg-salt-team/attachments/20200609/004babd0/attachment.bin>


More information about the pkg-salt-team mailing list