Skip to content

Commit

Permalink
Blacken states/pkg.py
Browse files Browse the repository at this point in the history
  • Loading branch information
amendlik committed Jan 30, 2025
1 parent c7b6784 commit 4940103
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions salt/states/pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -745,10 +745,10 @@ def _find_install_targets(
for package_name, version_string in desired.items():

# FreeBSD pkg supports `openjdk` and `java/openjdk7` package names
origin = bool(re.search('/', package_name))
origin = bool(re.search("/", package_name))

if __grains__['os'] == 'FreeBSD' and origin:
cver = [k for k, v in cur_pkgs.items() if v['origin'] == package_name]
if __grains__["os"] == "FreeBSD" and origin:
cver = [k for k, v in cur_pkgs.items() if v["origin"] == package_name]
else:
cver = cur_pkgs.get(package_name, [])

Expand Down
2 changes: 1 addition & 1 deletion tests/pytests/unit/states/test_pkg.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import salt.modules.cp as cp
import salt.modules.pacmanpkg as pacmanpkg
import salt.modules.pkg_resource as pkg_resource
import salt.modules.yumpkg as yumpkg
import salt.modules.pkgng as pkgng
import salt.modules.yumpkg as yumpkg
import salt.states.beacon as beaconstate
import salt.states.pkg as pkg
import salt.utils.state as state_utils
Expand Down

0 comments on commit 4940103

Please sign in to comment.