saltstack/salt — pull request #7831 by jesusaurus (2013-10-14 23:08:09+00:00)
Title: Setting owner permissions fails if the vhost was not added

Don't try to change the permissions if the vhost was not created, either because of a failed attempt to add the vhost or because we are test mode.