mirror of
https://github.com/status-im/consul.git
synced 2025-01-22 03:29:43 +00:00
cli: check previously ignored errors when updating a policy (#6565)
This commit is contained in:
parent
ef6399928d
commit
699d1b2acb
@ -102,7 +102,10 @@ func (c *cmd) Run(args []string) int {
|
||||
}
|
||||
|
||||
rules, err := helpers.LoadDataSource(c.rules, c.testStdin)
|
||||
|
||||
if err != nil {
|
||||
c.UI.Error(fmt.Sprintf("Error loading data source: %v", err))
|
||||
return 1
|
||||
}
|
||||
var updated *api.ACLPolicy
|
||||
if c.noMerge {
|
||||
updated = &api.ACLPolicy{
|
||||
|
@ -30,6 +30,7 @@ func TestConfigDelete(t *testing.T) {
|
||||
Name: "web",
|
||||
Protocol: "tcp",
|
||||
}, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
args := []string{
|
||||
"-http-addr=" + a.HTTPAddr(),
|
||||
|
@ -30,6 +30,7 @@ func TestConfigRead(t *testing.T) {
|
||||
Name: "web",
|
||||
Protocol: "tcp",
|
||||
}, nil)
|
||||
require.NoError(t, err)
|
||||
|
||||
args := []string{
|
||||
"-http-addr=" + a.HTTPAddr(),
|
||||
|
Loading…
x
Reference in New Issue
Block a user