()
return conf
Parses vagrant configuration and returns it as dict of ssh parameters
    and their values
Parses vagrant configuration and returns it as dict of ssh parameters
    and their values
Parses vagrant configuration and returns it as dict of ssh parameters and their values
def get_vagrant_config():
    """
    Parses vagrant configuration and returns it as dict of ssh parameters
    and their values
    """
    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