Re: [pve-devel] [PATCH ha-manager] Resource/API: abort early if resource in error state

2016-11-29 Thread Dietmar Maurer
comments inline: > diff --git a/src/PVE/API2/HA/Resources.pm b/src/PVE/API2/HA/Resources.pm > index 621c9e6..f1fac54 100644 > --- a/src/PVE/API2/HA/Resources.pm > +++ b/src/PVE/API2/HA/Resources.pm > @@ -187,6 +187,14 @@ __PACKAGE__->register_method ({ > if !$group_cfg->{ids}->{$grou

[pve-devel] [PATCH ha-manager] Resource/API: abort early if resource in error state

2016-11-24 Thread Thomas Lamprecht
If a service is in error state the single state change command that can make sense is setting the disabled request state. Thus abort on all other commands early to enhance user experience. Signed-off-by: Thomas Lamprecht --- src/PVE/API2/HA/Resources.pm | 18 ++ 1 file changed, 1