Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created April 26, 2012 17:13
Show Gist options
  • Save ohadlevy/2501051 to your computer and use it in GitHub Desktop.
Save ohadlevy/2501051 to your computer and use it in GitHub Desktop.
diff --git a/app/models/host.rb b/app/models/host.rb
index 2dff361..b7a5aaa 100644
--- a/app/models/host.rb
+++ b/app/models/host.rb
@@ -387,6 +387,7 @@ class Host < Puppet::Rails::Host
self.environment ||= importer.environment unless importer.environment.blank?
end
+ self.save(:validate => false)
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment