Skip to content

Commit 19c0f64

Browse files
fix(Table): include table name in the output structure
1 parent 5a3c6ff commit 19c0f64

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models

pfSense-pkg-RESTAPI/files/usr/local/pkg/RESTAPI/Models/Table.inc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class Table extends Model {
4848
'/sbin/pfctl -t ' . escapeshellarg($table_name) . ' -T show',
4949
trim_whitespace: true,
5050
);
51-
$tables[$table_name] = ['entries' => trim($table_entries_output->output)];
51+
$tables[$table_name] = ['name' => $table_name, 'entries' => trim($table_entries_output->output)];
5252
}
5353

5454
return $tables;

0 commit comments

Comments
 (0)