Skip to content

Commit

Permalink
Oops: missing six, blackify
Browse files Browse the repository at this point in the history
  • Loading branch information
mattLLVW committed Oct 20, 2023
1 parent 1995158 commit 1017089
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ def last_highstate(self):
# Get all potential jobs.
states = SaltReturns.objects.filter(
Q(fun="state.apply") | Q(fun="state.highstate"), id=self.minion_id
).order_by('-jid')[0:2]
).order_by("-jid")[0:2]
states = sorted(states, key=lambda x: x.jid)

# Remove jobs with arguments.
Expand Down
2 changes: 1 addition & 1 deletion docker/saltconfig/salt/auth/alcali.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def _get_options():

# post processing
for k, v in defaults.items():
if isinstance(v, six.string_types) and v.lower() == "none":
if isinstance(v, str) and v.lower() == "none":
# Ensure 'None' is rendered as None
_options[k] = None
if k == "port":
Expand Down

0 comments on commit 1017089

Please sign in to comment.