Skip to content

Commit

Permalink
Update gid parsing to only accept number/ids
Browse files Browse the repository at this point in the history
  • Loading branch information
rfbgo committed Jun 12, 2024
1 parent da4e0cb commit dd10339
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion var/ramble/repos/builtin/modifiers/gcp-metadata/modifier.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,9 @@ def _prepare_analysis(self, workspace):
if os.path.isfile(file_name):
with open(file_name, "r") as f:
for cur_id in f.readlines():
ids.add(cur_id.strip())
cur_id = cur_id.strip()
if cur_id.isnumeric():
ids.add(cur_id)

with open(
self.expander.expand_var(
Expand Down

0 comments on commit dd10339

Please sign in to comment.