From 54c0362c2e20b4d7b2844b418a02b68013a6c1ee Mon Sep 17 00:00:00 2001 From: Jamie H Date: Thu, 26 Sep 2013 15:54:43 +0200 Subject: [PATCH] Adding the red herrings --- lib/fog/rackspace/models/auto_scale/policy.rb | 1 - lib/fog/rackspace/models/auto_scale/webhook.rb | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/fog/rackspace/models/auto_scale/policy.rb b/lib/fog/rackspace/models/auto_scale/policy.rb index 903f34f9e..0e253a0d9 100644 --- a/lib/fog/rackspace/models/auto_scale/policy.rb +++ b/lib/fog/rackspace/models/auto_scale/policy.rb @@ -40,7 +40,6 @@ module Fog attribute :type # @!attribute [r] args - # @note An example might be: # @example See below: # - "cron": "23 * * * *" # - "at": "2013-06-05T03:12Z" diff --git a/lib/fog/rackspace/models/auto_scale/webhook.rb b/lib/fog/rackspace/models/auto_scale/webhook.rb index 763bfaf70..d43a98c68 100644 --- a/lib/fog/rackspace/models/auto_scale/webhook.rb +++ b/lib/fog/rackspace/models/auto_scale/webhook.rb @@ -45,8 +45,8 @@ module Fog requires :name options = {} - options['name'] = name unless name.nil? - options['metadata'] = metadata unless metadata.nil? + options['name'] = name if name + options['metadata'] = metadata if metadata data = service.create_webhook(group_id, policy_id, options) merge_attributes(data.body['webhooks'][0])