Vault SSH: Default CIDR for roles

This commit is contained in:
vishalnayak 2015-08-27 13:04:15 -04:00
parent 2cdee69501
commit 5063a0608b
2 changed files with 2 additions and 2 deletions

View File

@ -150,7 +150,7 @@ func (b *backend) pathRoleWrite(req *logical.Request, d *framework.FieldData) (*
cidrList := d.Get("cidr_list").(string)
if cidrList == "" {
return logical.ErrorResponse("Missing CIDR blocks"), nil
cidrList = "0.0.0.0/0"
}
// Check if all the CIDR entries are infact valid entries

View File

@ -153,7 +153,7 @@ func (c *SSHCommand) Run(args []string) int {
sshCmd.Stdout = os.Stdout
err = sshCmd.Run()
if err != nil {
c.Ui.Error(fmt.Sprintf("Error while running ssh command:%s", err))
c.Ui.Error(fmt.Sprintf("Failed to establish SSH connection:%s", err))
}
return 0
}