The Changes done are
1.Used log function intead of print
2.Added file_path as a argument in createResourceYaml function
3.Removed the name component from all dictionary .
4.Changed list server_set ,earlier it was the list of dictionaries ,changed to list of strings
5.Used eval while updating dictionary.
6.Used wtYaml function to append data to file
7.Added return code 0 or 100 in createResourceYaml so that the failure can be sent back to resource spawner so that a rollback can be initiated.
Improved the code so that failure can be sent back to resource spawner
1.Used log function intead of print
2.Added file_path as a argument in createResourceYaml function
3.Removed the name component from all dictionary .
4.Changed list server_set ,earlier it was the list of dictionaries ,changed to list of strings
5.Used eval while updating dictionary.
6.Used wtYaml function to append data to file
7.Added return code 0 or 100 in createResourceYaml so that the failure can be sent back to resource spawner so that a rollback can be initiated.
Merge branch 'master' of github.com:amar266/jiocloud_puppet_builder