From 669c9fc0138c221cc03e52ffc3843718a62653c0 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Fri, 12 Dec 2014 01:27:22 -0800 Subject: [PATCH] commands/push: push strategy should be string --- plugins/commands/push/command.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/plugins/commands/push/command.rb b/plugins/commands/push/command.rb index d04e296fb..455b6fadc 100644 --- a/plugins/commands/push/command.rb +++ b/plugins/commands/push/command.rb @@ -55,13 +55,14 @@ module VagrantPlugins end end + name = name.to_sym if !pushes.include?(name) raise Vagrant::Errors::PushStrategyNotDefined, - name: name, - pushes: pushes + name: name.to_s, + pushes: pushes.map(&:to_s) end - return name.to_sym + return name end end end