Merge "Application Credentials: Set unrestricted Default to False"

This commit is contained in:
Zuul 2019-04-29 11:56:59 +00:00 committed by Gerrit Code Review
commit 5601ea9477
2 changed files with 2 additions and 2 deletions

View File

@ -94,7 +94,7 @@ class CreateApplicationCredentialForm(forms.SelfHandlingForm):
secret=data['secret'] or None,
expires_at=expiration or None,
roles=roles,
unrestricted=data['unrestricted'] or None
unrestricted=data['unrestricted']
)
self.request.session['application_credential'] = \
new_app_cred.to_dict()

View File

@ -47,7 +47,7 @@ class ApplicationCredentialViewTests(test.TestCase):
'description': new_app_cred.description,
'expires_at': new_app_cred.expires_at,
'roles': None,
'unrestricted': None,
'unrestricted': False,
'secret': None
}