fix(cgi-bin): add switch support to get_networks

main
Tsu-ba-me 4 years ago
parent 4fa8073efe
commit e1c5036fb4
  1. 2
      cgi-bin/get_networks

@ -213,7 +213,7 @@ $anvil->Database->get_anvils();
print $anvil->Template->get({file => "shared.html", name => "json_headers", show_name => 0})."\n";
my $anvil_uuid = $anvil->data->{cgi}{anvil_uuid}{value};
my $anvil_uuid = exists $anvil->data->{cgi}{anvil_uuid}{value} ? $anvil->data->{cgi}{anvil_uuid}{value} : $anvil->data->{switches}{'anvil-uuid'};
my $anvil_uuid_variable_name = "anvil UUID";
my $response_body = {};

Loading…
Cancel
Save