Fix PersistentVMRole detection on vm create
Merge pull request #1075 from fernandoacorreia/fix-PersistentVMRole-detection

Fix PersistentVMRole detection on vm create