Permalink
Browse files

Add common:: prefix to sites

  • Loading branch information...
1 parent ab6159d commit 8468c2dccd265e2c36ad4531e104c3d78fa4b5fb @priteau priteau committed Apr 3, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 sandbox/FG/add_sites.sh
  2. +1 −1 sandbox/FG/add_users.py
  3. +1 −1 sandbox/FG/test_add_user.py
View
@@ -11,7 +11,7 @@ fi
for site in $sites
do
- cmd="ceictl -b $PHANTOM_EPU_RABBIT_HOST -x $EXCHANGE_SCOPE -u $RABBITMQ_USERNAME -p $RABBITMQ_PASSWORD site add $site --definition $thisdir/$site.yml"
+ cmd="ceictl -b $PHANTOM_EPU_RABBIT_HOST -x $EXCHANGE_SCOPE -u $RABBITMQ_USERNAME -p $RABBITMQ_PASSWORD site add common::$site --definition $thisdir/$site.yml"
echo $cmd
$cmd
done
View
@@ -71,7 +71,7 @@ def add_one_user(authz, dtrs_client, access_key, access_secret, pub_key, email,
print "public key is %s" % (pub_key)
for host in hosts:
try:
- dtrs_client.add_credentials(access_key, host, creds)
+ dtrs_client.add_credentials(access_key, "common::" + host, creds)
except dashi.exceptions.DashiError:
print "Failed to add credentials for site %s" % host
pass
@@ -59,7 +59,7 @@ def add_one_user(dtrs_client, access_key, access_secret, pub_key, username):
print "public key is %s" % (pub_key)
for host in hosts:
try:
- dtrs_client.add_credentials(access_key, host, creds)
+ dtrs_client.add_credentials(access_key, "common::" + host, creds)
except:
pass
try:

0 comments on commit 8468c2d

Please sign in to comment.