Fix for update env attributes after removing instance
Merge pull request #1066 from kgusakov/master

Fix for update env attributes after removing instance