Skip to content

Commit

Permalink
Provide defaults on the deprecated function.
Browse files Browse the repository at this point in the history
Refs #62475

Signed-off-by: Pedro Algarvio <[email protected]>
  • Loading branch information
s0undt3ch authored and Megan Wilhite committed Oct 10, 2022
1 parent a1d76dc commit 43b8502
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions salt/modules/aptpkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -3144,6 +3144,10 @@ def expand_repo_def(**kwargs):
"the removal of this deprecation warning",
stacklevel=3,
)
if "os_name" not in kwargs:
kwargs["os_name"] = __grains__["os"]
if "lsb_distrib_codename" not in kwargs:
kwargs["lsb_distrib_codename"] = __grains__.get("lsb_distrib_codename")
return _expand_repo_def(**kwargs)


Expand Down

0 comments on commit 43b8502

Please sign in to comment.