<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -139,6 +139,7 @@ class Puppet::Parser::Resource
         if params = options[:params]
             options.delete(:params)
             params.each do |param|
+                tag(*param.value) if param.name == :tag
                 set_parameter(param)
             end
         end</diff>
      <filename>lib/puppet/parser/resource.rb</filename>
    </modified>
    <modified>
      <diff>@@ -92,6 +92,13 @@ describe Puppet::Parser::Resource do
             res = Puppet::Parser::Resource.new(@arguments)
             res.ref.should == &quot;Resource[testing]&quot;
         end
+
+        it &quot;should be tagged with user tags&quot; do
+            tags = [ &quot;tag1&quot;, &quot;tag2&quot; ]
+            @arguments[:params] = [ param(:tag, tags , :source) ]
+            res = Puppet::Parser::Resource.new(@arguments)
+            (res.tags &amp; tags).should == tags
+        end
     end
 
     describe &quot;when evaluating&quot; do</diff>
      <filename>spec/unit/parser/resource.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d69fffb63ca9efe3cca67167430b23d3b8d38fa4</id>
    </parent>
  </parents>
  <author>
    <name>Brice Figureau</name>
    <email>brice-puppet@daysofwonder.com</email>
  </author>
  <url>http://github.com/lak/puppet/commit/b5855ec1a5af2bec6c4ac35f8e6a885999b09bf9</url>
  <id>b5855ec1a5af2bec6c4ac35f8e6a885999b09bf9</id>
  <committed-date>2009-06-05T16:52:53-07:00</committed-date>
  <authored-date>2009-06-03T11:09:56-07:00</authored-date>
  <message>Make sure resources are tagged with the user tag on the server

It appears that resources were not tagged with user tag on the
server, which prevents those tags to be persisted as tag in
the storeconfigs.

Signed-off-by: Brice Figureau &lt;brice-puppet@daysofwonder.com&gt;</message>
  <tree>b185d49e6fdcee2da5131384f9022c35dfb7ff54</tree>
  <committer>
    <name>James Turnbull</name>
    <email>james@lovedthanlost.net</email>
  </committer>
</commit>
