Skip to content

Commit

Permalink
Surce Keystone creds explicitly from $PWD; use the 'member' role
Browse files Browse the repository at this point in the history
Two small changes:

  - Source keystone admin explicitly from PWD: source
    $PWD/keystonerc_admin instead of source keystonerc_admin
  - Use the role _member_ instead of 'user' when assigning a
    role to the user

Thanks to Luigi Toscano for testing and reporting this.
  • Loading branch information
kashyapc committed Jan 14, 2015
1 parent 0df7f11 commit 80c47b6
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions create-new-tenant-network.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/bin/sh
# Copyright (C) 2013 Red Hat Inc.
# Copyright (C) 2015 Red Hat Inc.
# Kashyap Chamarthy <[email protected]>
#
# # This program is free software; you can redistribute it and/or modify
Expand Down Expand Up @@ -46,7 +46,7 @@


# Source the admin credentials
source keystonerc_admin
source $PWD/keystonerc_admin


# Positional parameters
Expand All @@ -68,7 +68,7 @@ keystone user-create \

keystone user-role-add \
--user $username \
--role user \
--role _member_ \
--tenant $tenantname

# Create an RC file for this user and source the credentials
Expand Down

0 comments on commit 80c47b6

Please sign in to comment.