File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -103,7 +103,11 @@ install_registry() {
103103 echo " Registry installation successful"
104104
105105 # Update Role Permission for registry.
106- bash scripts/registry_role_permissions.sh
106+ if [[ $1 ]]; then
107+ bash scripts/registry_role_permissions.sh $1
108+ else
109+ bash scripts/registry_role_permissions.sh
110+ fi
107111}
108112
109113# Function to install Layer2 Config
@@ -355,7 +359,7 @@ get_np_domain() {
355359 local login_url=" ${registry_url%/ subscribers} "
356360 read -p " Enter the domain name for $1 : " np_domain
357361 domain_present=$( curl -s -H " ApiKey:$api_key " --header ' Content-Type: application/json' $login_url /network_domains/index | jq -r ' .[].name' | tr ' \n' ' ' )
358- if echo " $domain_present " | grep -qw " $np_domain " ; then
362+ if echo " : $domain_present : " | grep -qw " : $np_domain : " ; then
359363 return 0
360364 else
361365 echo " ${BoldRed} The domain '$np_domain ' is NOT present in the network domains.${NC} "
You can’t perform that action at this time.
0 commit comments