From 7bf604b3e2f4c3f51317c33f66cae96a744ad101 Mon Sep 17 00:00:00 2001 From: Tsu-ba-me Date: Fri, 28 May 2021 17:16:16 -0400 Subject: [PATCH] fix(cgi-bin): add switch for is_member in set_membership --- cgi-bin/set_membership | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi-bin/set_membership b/cgi-bin/set_membership index ccf423bf..958ec317 100755 --- a/cgi-bin/set_membership +++ b/cgi-bin/set_membership @@ -199,7 +199,7 @@ if (not $is_decode_json_success) my $host_uuid = exists $request_body->{host_uuid} ? $request_body->{host_uuid} : $anvil->data->{switches}{'host-uuid'}; # Defaults to join; will check whether host is already part of its anvil cluster. -my $is_member = exists $request_body->{is_member} ? $request_body->{is_member} : 1; +my $is_member = exists $request_body->{is_member} ? $request_body->{is_member} : $anvil->data->{switches}{'is-member'}; my $host_uuid_variable_name = "host UUID"; if ($host_uuid)