diff options
author | Alex Legler <alex@a3li.li> | 2014-04-28 23:40:28 +0200 |
---|---|---|
committer | Alex Legler <alex@a3li.li> | 2014-04-28 23:40:28 +0200 |
commit | e3d4655327dcc98887d3b51e30eb20ed2c245015 (patch) | |
tree | 1124ed89da0f8bb28b523345e28a3a1ac78ec7e6 | |
parent | Default token to '' instead of nil (diff) | |
download | glsamaker-e3d4655327dcc98887d3b51e30eb20ed2c245015.tar.gz glsamaker-e3d4655327dcc98887d3b51e30eb20ed2c245015.tar.bz2 glsamaker-e3d4655327dcc98887d3b51e30eb20ed2c245015.zip |
Try with Bugzilla_token instead of token
-rw-r--r-- | lib/bugzilla.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/bugzilla.rb b/lib/bugzilla.rb index 8734775..b35c5a8 100644 --- a/lib/bugzilla.rb +++ b/lib/bugzilla.rb @@ -32,7 +32,7 @@ module Bugzilla result = client.call('Bug.add_comment', { 'id' => bug.to_i, 'comment' => comment, - 'token' => token, + 'Bugzilla_token' => token, }) result['id'] rescue XMLRPC::FaultException => e @@ -77,7 +77,7 @@ module Bugzilla rpc_data['whiteboard'] = changes[:whiteboard] if changes.has_key?(:whiteboard) rpc_data['url'] = changes[:url] if changes.has_key?(:url) rpc_data['resolution'] = changes[:resolution] if changes.has_key?(:resolution) - rpc_data['token'] = token + rpc_data['Bugzilla_token'] = token result = client.call('Bug.update', rpc_data) result['bugs'].first @@ -118,7 +118,7 @@ module Bugzilla rpc_data['assigned_to'] = data[:assignee] if data.has_key?(:assignee) rpc_data['cc'] = data[:cc].to_a if data.has_key?(:cc) rpc_data['status'] = data[:status] if data.has_key?(:status) - rpc_data['token'] = token + rpc_data['Bugzilla_token'] = token result = client.call('Bug.create', rpc_data) result['id'] |