lib/poolparty/resources/user.rb in poolparty-1.3.4 vs lib/poolparty/resources/user.rb in poolparty-1.3.6
- old
+ new
@@ -42,11 +42,11 @@
:supports => {:manage_home => false}
)
def print_to_chef
str = 'user "<%= name %>" do
- action :<%= action ? print_variable(action) : (exists ? :create : :remove) %>
+ action <%= print_variable(action ? action : (exists ? :create : :remove)) %>
'
str << " comment <%= print_variable(comment) %>\n" if comment
str << " uid <%= print_variable(uid) %>\n" if uid
str << " gid <%= print_variable(gid) %>\n" if gid
str << " home <%= print_variable(home) %>\n" if home
@@ -58,6 +58,6 @@
end
end
end
-end
\ No newline at end of file
+end