def get_vagrant_config():
 result = local('vagrant ssh-config', capture=True)
 conf = {}
 for line in iter(result.splitlines()):
  parts = line.split()
  conf[parts[0]] = ' '.join(parts[1:])
 return conf

def get_vagrant_config ( ) : result = local ( 'vagrant ssh-config' , capture = True ) conf = { } for line in iter ( result . splitlines ( ) ) : parts = line . split ( ) conf [ parts [ 0 ] ] = ' ' . join ( parts [ 1 : ] ) return conf
parses vagrant configuration and returns it as dict of ssh parameters and their values .