++Chiradeep, as I see your name referenced in the script. Noticed an odd behavior on ACS41 and vSphere, where each time you deploy a VM, on router vm under /var/www/html/latest/ the .htaccess file gets duplicate set of rewrite rules appended.
Vm_data is called each time VM is deployed, and each time redundant RewriteRules are added to .htaccess file - per each run/vm demployment. Before I begin troubleshooting and fixing this issue (I can help rewrite the bash logic for checking if entry exists), could someone please give me a context as to how and when vm_data file is used. Also, for some reason metadata/meta-data Rewrite Rule is missing, I would like to understand where the call is made and how $folder variable is set. Thanks ilya