mstanislav/mCollective-Agents — pull request #3 by binbashfr (2012-02-28 15:59:05+00:00)
Title: Problem with Ruby 1.8 ?

Hello,

Thanks for this mcollective agent.
I've got this problem with Ruby 1.8, Mcollective 1.2.1 :

I, [2012-02-28T16:38:15.473315 #18839] INFO -- : mcollectived:31 The Marionette Collective 1.2.1 started logging at info level
E, [2012-02-28T16:38:15.543578 #18845] ERROR -- : pluginmanager.rb:111:in `loadclass' Failed to load MCollective::Agent::Apt: /usr/share/mcollective/plugins/mcollective/agent/apt.rb:30: syntax error, unexpected '-', expecting '\n' or ';'
def dist-upgrade_action
^
/usr/share/mcollective/plugins/mcollective/agent/apt.rb:35: syntax error, unexpected kEND, expecting $end

It's ok for me if I remove the "-" in the dist-upgrade_action in apt.rb file.

Regards.