summaryrefslogtreecommitdiffstats
path: root/tools/data_generators
diff options
context:
space:
mode:
authorRyan Petrello <rpetrell@redhat.com>2019-03-12 22:12:16 +0100
committerRyan Petrello <rpetrell@redhat.com>2019-06-06 18:23:00 +0200
commit6da445f7c06e1b7babdc20928492f1b0f7c59618 (patch)
tree8e5131a7bd37579c8dce3b53785c91421aace01e /tools/data_generators
parentMerge pull request #4017 from ryanpetrello/swagger-action-node (diff)
downloadawx-6da445f7c06e1b7babdc20928492f1b0f7c59618.tar.xz
awx-6da445f7c06e1b7babdc20928492f1b0f7c59618.zip
remove /api/v1 and deprecated credential fields
Diffstat (limited to 'tools/data_generators')
-rwxr-xr-xtools/data_generators/rbac_dummy_data_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/data_generators/rbac_dummy_data_generator.py b/tools/data_generators/rbac_dummy_data_generator.py
index f6bf8124df..d88320904f 100755
--- a/tools/data_generators/rbac_dummy_data_generator.py
+++ b/tools/data_generators/rbac_dummy_data_generator.py
@@ -332,7 +332,7 @@ def make_the_data():
name='%s Credential %d User %d' % (prefix, credential_id, user_idx),
defaults=dict(created_by=next(creator_gen),
modified_by=next(modifier_gen)),
- credential_type=CredentialType.from_v1_kind('ssh')
+ credential_type=CredentialType.objects.filter(namespace='ssh').first()
)
credential.admin_role.members.add(user)
credentials.append(credential)
@@ -355,7 +355,7 @@ def make_the_data():
name='%s Credential %d team %d' % (prefix, credential_id, team_idx),
defaults=dict(created_by=next(creator_gen),
modified_by=next(modifier_gen)),
- credential_type=CredentialType.from_v1_kind('ssh')
+ credential_type=CredentialType.objects.filter(namespace='ssh').first()
)
credential.admin_role.parents.add(team.member_role)
credentials.append(credential)