Vault SSH: Default CIDR for roles
This commit is contained in:
parent
2cdee69501
commit
5063a0608b
|
@ -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
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue