File tree Expand file tree Collapse file tree 2 files changed +22
-2
lines changed
src/KubernetesPfSenseController/Plugin Expand file tree Collapse file tree 2 files changed +22
-2
lines changed Original file line number Diff line number Diff line change 1+ # v0.5.14
2+
3+ Released 2023-04-15
4+
5+ - more robust handling of the shared frontend templates
6+
17# v0.5.13
28
39Released 2023-02-23
Original file line number Diff line number Diff line change @@ -243,8 +243,22 @@ public function doAction()
243243 $ frontend ['status ' ] = 'active ' ;
244244 $ frontend ['secondary ' ] = 'yes ' ;
245245 $ frontend ['primary_frontend ' ] = $ primaryFrontendName ;
246- $ frontend ['ha_acls ' ] = ['item ' => []];
247- $ frontend ['a_actionitems ' ] = ['item ' => []];
246+
247+ // acls
248+ if (!is_array ($ frontend ['ha_acls ' ])) {
249+ $ frontend ['ha_acls ' ] = ['item ' => []];
250+ }
251+ if (!is_array (($ frontend ['ha_acls ' ]['item ' ]))) {
252+ $ frontend ['ha_acls ' ]['item ' ] = [];
253+ }
254+
255+ // actions
256+ if (!is_array ($ frontend ['a_actionitems ' ])) {
257+ $ frontend ['a_actionitems ' ] = ['item ' => []];
258+ }
259+ if (!is_array ($ frontend ['a_actionitems ' ]['item ' ])) {
260+ $ frontend ['a_actionitems ' ]['item ' ] = [];
261+ }
248262
249263 foreach ($ item ['spec ' ]['rules ' ] as $ ruleKey => $ rule ) {
250264 $ aclName = $ frontend ['name ' ] . '-rule- ' . $ ruleKey ;
You can’t perform that action at this time.
0 commit comments