mirror of
https://github.com/ansible/awx.git
synced 2026-10-31 06:26:15 -02:30
AAP-85334: Normalize formatting with ruff format
Pure formatting commit — no logic changes. Run `ruff format` across awx/ and awxkit/ (awx_collection excluded).
This commit is contained in:
@@ -39,7 +39,7 @@ class AdHocCommand(HasCreate, UnifiedJob):
|
||||
verbosity=verbosity,
|
||||
inventory=self.ds.inventory,
|
||||
credential=self.ds.credential,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
payload.ds = DSAdapter(self.__class__.__name__, self._dependency_store)
|
||||
return payload
|
||||
@@ -53,7 +53,7 @@ class AdHocCommand(HasCreate, UnifiedJob):
|
||||
verbosity=verbosity,
|
||||
inventory=inventory,
|
||||
credential=credential,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
return self.update_identity(AdHocCommands(self.connection).post(payload))
|
||||
|
||||
|
||||
@@ -42,7 +42,7 @@ class ExecutionEnvironment(HasCreate, HasCopy, base.Base):
|
||||
organization=organization.id if organization else None,
|
||||
credential=credential.id if credential else None,
|
||||
pull=pull,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
|
||||
return payload
|
||||
|
||||
@@ -70,7 +70,7 @@ class Project(HasCopy, HasCreate, HasNotifications, UnifiedJobTemplate):
|
||||
scm_url=scm_url,
|
||||
scm_branch=scm_branch,
|
||||
credential=credential,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
payload.ds = DSAdapter(self.__class__.__name__, self._dependency_store)
|
||||
return payload
|
||||
@@ -84,7 +84,7 @@ class Project(HasCopy, HasCreate, HasNotifications, UnifiedJobTemplate):
|
||||
scm_branch=scm_branch,
|
||||
organization=organization,
|
||||
credential=credential,
|
||||
**kwargs
|
||||
**kwargs,
|
||||
)
|
||||
self.update_identity(Projects(self.connection).post(payload))
|
||||
|
||||
|
||||
@@ -156,7 +156,7 @@ class CLI(object):
|
||||
self.root.connection.login(username, password)
|
||||
self.root.get()
|
||||
except Exception as e:
|
||||
raise RuntimeError(f"Basic authentication failed: {str(e)}. " "Verify credentials and network connectivity.") from e
|
||||
raise RuntimeError(f"Basic authentication failed: {str(e)}. Verify credentials and network connectivity.") from e
|
||||
return
|
||||
|
||||
# Use session-based authentication (default)
|
||||
|
||||
@@ -174,7 +174,7 @@ class ProjectCreate(CustomAction):
|
||||
resource = 'projects'
|
||||
|
||||
def add_arguments(self, parser, resource_options_parser):
|
||||
parser.choices[self.action].add_argument('--monitor', action='store_true', help=('If set, prints stdout of the project update until ' 'it finishes.'))
|
||||
parser.choices[self.action].add_argument('--monitor', action='store_true', help=('If set, prints stdout of the project update until it finishes.'))
|
||||
parser.choices[self.action].add_argument('--wait', action='store_true', help='If set, waits until the new project has updated.')
|
||||
|
||||
def post(self, kwargs):
|
||||
|
||||
@@ -42,9 +42,7 @@ class CircularDependencyError(ValueError):
|
||||
def __init__(self, data):
|
||||
# Sort the data just to make the output consistent, for use in
|
||||
# error messages. That's convenient for doctests.
|
||||
s = 'Circular dependencies exist among these items: {{{}}}'.format(
|
||||
', '.join('{!r}:{!r}'.format(key, value) for key, value in sorted(data.items()))
|
||||
) # noqa
|
||||
s = 'Circular dependencies exist among these items: {{{}}}'.format(', '.join('{!r}:{!r}'.format(key, value) for key, value in sorted(data.items()))) # noqa
|
||||
super(CircularDependencyError, self).__init__(s)
|
||||
self.data = data
|
||||
|
||||
|
||||
Reference in New Issue
Block a user