-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add description and label to demo jt #15598
base: devel
Are you sure you want to change the base?
Add description and label to demo jt #15598
Conversation
a422904
to
cab92df
Compare
Quality Gate passedIssues Measures |
@@ -4,7 +4,7 @@ | |||
from django.core.management.base import BaseCommand | |||
from django.db import transaction | |||
from crum import impersonate | |||
from awx.main.models import User, Organization, Project, Inventory, CredentialType, Credential, Host, JobTemplate | |||
from awx.main.models import User, Organization, Project, Inventory, CredentialType, Credential, Host, JobTemplate, Label |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@TheRealHaoLiu could you document how you tested this change?
Codecov reveals that nothing in this module is ever hit in the test suite: https://app.codecov.io/gh/ansible/awx/pull/15598#f9e72d3f63929dd1c3c1d53def0b69c6-L7. So the CI wouldn't be able to catch any regressions.
@@ -50,9 +50,11 @@ def _handle(self): | |||
|
|||
ssh_type = CredentialType.objects.filter(namespace='ssh').first() | |||
c, _ = Credential.objects.get_or_create( | |||
credential_type=ssh_type, name='Demo Credential', inputs={'username': getattr(superuser, 'username', 'null')}, created_by=superuser | |||
credential_type=ssh_type, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is this a formatting-only change? I don't see any difference.
SUMMARY
Add description and label to the demo job template
request by @jamestalton
ISSUE TYPE
COMPONENT NAME
AWX VERSION
ADDITIONAL INFORMATION