Created
April 26, 2012 17:13
-
-
Save ohadlevy/2501051 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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