mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
test: Use osrelease instead of lsb_distrib_release
Replace `lsb_distrib_release` by `osrelease` in the tests to avoid needing to set the lsb_* values. Signed-off-by: Benjamin Drung <bdrung@ubuntu.com>
This commit is contained in:
parent
a2ec4f0727
commit
13d4751270
1 changed files with 3 additions and 3 deletions
|
@ -622,7 +622,7 @@ class Repo:
|
|||
"""
|
||||
if (
|
||||
self.grains["osfullname"] == "Ubuntu"
|
||||
and self.grains["lsb_distrib_release"] == "22.04"
|
||||
and self.grains["osrelease"] == "22.04"
|
||||
):
|
||||
return True
|
||||
return False
|
||||
|
@ -659,7 +659,7 @@ class Repo:
|
|||
)
|
||||
repo_content = "deb {opts} https://repo.saltproject.io/py3/{}/{}/{arch}/latest {} main".format(
|
||||
self.fullname,
|
||||
self.grains["lsb_distrib_release"],
|
||||
self.grains["osrelease"],
|
||||
self.grains["oscodename"],
|
||||
arch=self.grains["osarch"],
|
||||
opts=opts,
|
||||
|
@ -669,7 +669,7 @@ class Repo:
|
|||
@key_url.default
|
||||
def _default_key_url(self):
|
||||
key_url = "https://repo.saltproject.io/py3/{}/{}/{}/latest/salt-archive-keyring.gpg".format(
|
||||
self.fullname, self.grains["lsb_distrib_release"], self.grains["osarch"]
|
||||
self.fullname, self.grains["osrelease"], self.grains["osarch"]
|
||||
)
|
||||
|
||||
if self.alt_repo:
|
||||
|
|
Loading…
Add table
Reference in a new issue