lib/logstash/inputs/rackspace.rb in logstash-input-rackspace-3.0.4 vs lib/logstash/inputs/rackspace.rb in logstash-input-rackspace-3.0.5
- old
+ new
@@ -8,11 +8,11 @@
# Rackspace Cloud Username
config :username, :validate => :string, :required => true
# Rackspace Cloud API Key
- config :api_key, :validate => :string, :required => true
+ config :api_key, :validate => :password, :required => true
# Rackspace region
# `ord, dfw, lon, syd,` etc
config :region, :validate => :string, :default => 'dfw'
@@ -30,10 +30,10 @@
public
def register
require "fog"
@service = Fog::Rackspace::Queues.new(
:rackspace_username => @username, # Your Rackspace Username
- :rackspace_api_key => @api_key, # Your Rackspace API key
+ :rackspace_api_key => @api_key.value, # Your Rackspace API key
:rackspace_region => @region.to_sym, # Your desired region
:connection_options => {} # Optional connection options
)
begin