Skip to content

Commit

Permalink
Update instanceNetworkExposure.js
Browse files Browse the repository at this point in the history
  • Loading branch information
alphadev4 authored Sep 16, 2024
1 parent 51e6b54 commit 6a26547
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/google/compute/instanceNetworkExposure.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ module.exports = {

instances.data.forEach(instance => {
let networks = instance.networkInterfaces.map(nic => nic.network);
let tags = instance.tags?.items || [];
let tags = instance.tags && instance.tags.items ? instance.tags.items : [];
let serviceAccount = instance.serviceAccounts[0]?.email || '';

let firewallRules = firewalls.data.filter(rule => {
Expand Down

0 comments on commit 6a26547

Please sign in to comment.