removing unwanted variables and using to_native instead of str()
removing unwanted variables and using to_native instead of str()

(cherry picked from commit c4b09cbcb4df160509f44ffddfedf586391b6878)

thaim/ansible,thaim/ansible