We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e077399 + e3bc6b5 commit 412c86dCopy full SHA for 412c86d
1 file changed
functions-common
@@ -875,14 +875,9 @@ function policy_add {
875
# Usage: get_or_create_domain <name> <description>
876
function get_or_create_domain {
877
local domain_id
878
- # Gets domain id
879
domain_id=$(
880
881
- openstack --os-cloud devstack-system-admin domain show $1 \
882
- -f value -c id 2>/dev/null ||
883
- # Creates new domain
884
openstack --os-cloud devstack-system-admin domain create $1 \
885
- --description "$2" \
+ --description "$2" --or-show \
886
-f value -c id
887
)
888
echo $domain_id
0 commit comments