Skip to content

Commit

Permalink
adding more error checking for user field in manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
SethHollandsworth committed Apr 3, 2024
1 parent 5c19bd1 commit 5c8b8b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/confcom/azext_confcom/security_policy.py
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ def populate_policy_content_for_all_images(

if (
not deepdiff.DeepDiff(image.get_user(), config.DEFAULT_USER, ignore_order=True)
and image_info.get("User") != ""
and (image_info.get("User") != "" and image_info.get("User") is not None)
):
# valid values are in the form "user", "user:group", "uid", "uid:gid", "user:gid", "uid:group"
# where each entry is either a string or an unsigned integer
Expand Down

0 comments on commit 5c8b8b6

Please sign in to comment.