mirror of
https://github.com/valitydev/salt.git
synced 2024-11-08 17:33:54 +00:00
Merge pull request #43281 from brejoc/fix_for_install_time_rh2
Checking install_time for '(none)' value
This commit is contained in:
commit
d1e59e752d
@ -104,7 +104,7 @@ def parse_pkginfo(line, osarch=None):
|
|||||||
if epoch not in ('(none)', '0'):
|
if epoch not in ('(none)', '0'):
|
||||||
version = ':'.join((epoch, version))
|
version = ':'.join((epoch, version))
|
||||||
|
|
||||||
if install_time:
|
if install_time not in ('(none)', '0'):
|
||||||
install_date = datetime.datetime.utcfromtimestamp(int(install_time)).isoformat() + "Z"
|
install_date = datetime.datetime.utcfromtimestamp(int(install_time)).isoformat() + "Z"
|
||||||
install_date_time_t = int(install_time)
|
install_date_time_t = int(install_time)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user