@@ -1897,20 +1897,7 @@ def providers_discover(self, args): # noqa
18971897 print ("No {} credentials discovered." .format (name ))
18981898
18991899 # Check for locally booted Deis Controller VM
1900- try :
1901- running_vms = subprocess .check_output (
1902- ['vboxmanage' , 'list' , 'runningvms' ],
1903- stderr = subprocess .PIPE
1904- )
1905- except subprocess .CalledProcessError :
1906- running_vms = ""
1907- # Vagrant internally names a running VM using the folder name in which the Vagrantfile
1908- # resides, eg; my-deis-code-folder_default_1383326629
1909- try :
1910- deis_codebase_folder = self ._session .git_root ().split ('/' )[- 1 ]
1911- except EnvironmentError :
1912- deis_codebase_folder = 'deis'
1913- if deis_codebase_folder and deis_codebase_folder in running_vms :
1900+ if self ._settings ['controller' ] == 'http://deis-controller.local' :
19141901 print ("Discovered locally running Deis Controller VM" )
19151902 # In order for the Controller to be able to boot Vagrant VMs it needs to run commands
19161903 # on the host machine. It does this via an SSH server. In order to access that server
@@ -1944,7 +1931,7 @@ def providers_discover(self, args): # noqa
19441931 else :
19451932 raise ResponseError (response )
19461933 else :
1947- print ("No Vagrant VMs discovered." )
1934+ print ("No Vagrant Deis Controller discovered." )
19481935
19491936 def providers_info (self , args ):
19501937 """
0 commit comments