Browse code

Update osc server create to have type as positional arg

In Keystone, for v2 and v3 service creation, there was a bug that
allowed a service to be created with no type, which made it useless.

See reference bug for details.

Change-Id: I5d095007fe2ebc8219dc012c5b16cb4c122179cd
Related-Bug: #1404073

Steve Martinelli authored on 2015/01/20 06:11:44
Showing 1 changed files
... ...
@@ -945,8 +945,8 @@ function get_or_create_service {
945 945
         openstack service show $1 -f value -c id 2>/dev/null ||
946 946
         # Creates new service if not exists
947 947
         openstack service create \
948
-            $1 \
949
-            --type=$2 \
948
+            $2 \
949
+            --name $1 \
950 950
             --description="$3" \
951 951
             -f value -c id
952 952
     )