Skip to content

Commit

Permalink
Remove unused variable
Browse files Browse the repository at this point in the history
  • Loading branch information
eheydrick committed Mar 28, 2017
1 parent 459fdb7 commit b85b99a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/aws_cleaner/aws_cleaner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ def self.notify_chat(msg, config)

module Webhooks
# generate the URL for the webhook
def self.generate_template(item, template_variable_method, _template_variable_argument, template_variable, config, instance_id)
def self.generate_template(item, template_variable_method, template_variable, config, instance_id)
if template_variable_method == 'get_chef_fqdn'
replacement = AwsCleaner::Chef.get_chef_fqdn(instance_id, config)
elsif template_variable_method == 'get_chef_node_name'
Expand All @@ -165,7 +165,6 @@ def self.fire_webhook(hook_config, config, instance_id)
url = AwsCleaner::Webhooks.generate_template(
hook_config[:url],
hook_config[:template_variables][:method],
hook_config[:template_variables][:argument],
hook_config[:template_variables][:variable],
config,
instance_id
Expand All @@ -185,7 +184,6 @@ def self.fire_webhook(hook_config, config, instance_id)
msg = AwsCleaner::Webhooks.generate_template(
hook_config[:chat][:message],
hook_config[:chat][:method],
hook_config[:chat][:argument],
hook_config[:chat][:variable],
config,
instance_id
Expand Down

0 comments on commit b85b99a

Please sign in to comment.