Update OPENSTACK_API_ENCRYPTED_KEY generation
[oom.git] / kubernetes / config / docker / init / config-init.sh
index cdf2d53..a65a11e 100755 (executable)
@@ -145,7 +145,7 @@ OPENSTACK_OAM_NETWORK_CIDR_PREFIX=`cut -d. -f1-3 <<<"$OPENSTACK_OAM_NETWORK_CIDR
 
 # MSO post install steps to encrypt openstack password
 MSO_ENCRYPTION_KEY=$(cat /config-init/$NAMESPACE/mso/mso/encryption.key)
-OPENSTACK_API_ENCRYPTED_KEY=`echo -n "$OPENSTACK_API_KEY" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p`
+OPENSTACK_API_ENCRYPTED_KEY=`echo -n "$OPENSTACK_PASSWORD" | openssl aes-128-ecb -e -K $MSO_ENCRYPTION_KEY -nosalt | xxd -c 256 -p`
 
 echo "Substituting configuration parameters"