Skip to content

Commit

Permalink
manual ruff check fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kdaily committed Dec 23, 2024
1 parent c63621e commit d6df666
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions awscli/customizations/eks/kubeconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,8 +125,7 @@ def _validate_list_entry_types(self, config):
:type config: Kubeconfig
"""
for key, value in self._validation_content.items():
if (key in config.content and
type(config.content[key]) == list):
if key in config.content and isinstance(config.content[key], list):
for element in config.content[key]:
if not isinstance(element, OrderedDict):
raise KubeconfigCorruptedError(
Expand Down
2 changes: 1 addition & 1 deletion awscli/customizations/emr/configutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def get_current_profile_var_name(session):
def _get_profile_str(session, separator):
profile_name = session.get_config_variable('profile')
return 'default' if profile_name is None \
else 'profile%c%s' % (separator, profile_name)
else f'profile{separator:c}{profile_name}'


def is_any_role_configured(session):
Expand Down

0 comments on commit d6df666

Please sign in to comment.