From 2c3e6199605f81cf35ab782b8894be185d18fb46 Mon Sep 17 00:00:00 2001 From: Armon Dadgar Date: Tue, 15 Jul 2014 14:51:54 -0700 Subject: [PATCH] Removing unused constants --- .../remote-exec/resource_provisioner.go | 13 ------------- helper/ssh/provisioner.go | 3 --- 2 files changed, 16 deletions(-) diff --git a/builtin/provisioners/remote-exec/resource_provisioner.go b/builtin/provisioners/remote-exec/resource_provisioner.go index 04e2fe12a..5eab3a0ae 100644 --- a/builtin/provisioners/remote-exec/resource_provisioner.go +++ b/builtin/provisioners/remote-exec/resource_provisioner.go @@ -17,19 +17,6 @@ import ( ) const ( - // DefaultUser is used if there is no default user given - DefaultUser = "root" - - // DefaultPort is used if there is no port given - DefaultPort = 22 - - // DefaultScriptPath is used as the path to copy the file to - // for remote execution if not provided otherwise. - DefaultScriptPath = "/tmp/script.sh" - - // DefaultTimeout is used if there is no timeout given - DefaultTimeout = 5 * time.Minute - // DefaultShebang is added at the top of the script file DefaultShebang = "#!/bin/sh" ) diff --git a/helper/ssh/provisioner.go b/helper/ssh/provisioner.go index e4844cc06..b9f29147c 100644 --- a/helper/ssh/provisioner.go +++ b/helper/ssh/provisioner.go @@ -22,9 +22,6 @@ const ( // DefaultTimeout is used if there is no timeout given DefaultTimeout = 5 * time.Minute - - // DefaultShebang is added at the top of the script file - DefaultShebang = "#!/bin/sh" ) // SSHConfig is decoded from the ConnInfo of the resource. These