Do not hardcode user/password of DNSaaS instance 73/28673/1 1.0.1-Amsterdam 1.0.1-ONAP
authorAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 19 Jan 2018 15:42:46 +0000 (10:42 -0500)
committerAlexis de Talhouët <adetalhouet89@gmail.com>
Fri, 19 Jan 2018 15:45:31 +0000 (10:45 -0500)
User already has the possibility to provide the username/password,
but the script is using hardcoded values. Let's use instead the
user specific ones.

Change-Id: Ice6ab80e039b437c16f0b8882b4b3e195a927653
Signed-off-by: Alexis de Talhouët <adetalhouet89@gmail.com>
Issue-ID: DCAEGEN2-270

boot/dcae2_vm_init.sh

index b071dff..0ae1549 100755 (executable)
@@ -160,8 +160,8 @@ register_multicloud_pod25dns_with_aai()
     local CLOUD_ENV
     local CLOUD_IDENTITY_URL
     local DNSAAS_SERVICE_URL
-    local DNSAAS_USERNAME='demo'
-    local DNSAAS_PASSWORD='onapdemo'
+    local DNSAAS_USERNAME="$(cat /opt/config/dnsaas_username.txt)"
+    local DNSAAS_PASSWORD="$(cat /opt/config/dnsaas_password.txt)"
 
     CLOUD_REGION="$(cat /opt/config/dnsaas_region.txt)"
     CLOUD_ENV="$(cat /opt/config/cloud_env.txt)"