Skip to content

Commit

Permalink
fix the lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
shubhamdp committed May 28, 2024
1 parent 2d912a9 commit ccc9230
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion credentials/generate-revocation-set.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ def parse_vid_pid_from_distinguished_name(distinguished_name):

# Fallback method to get the VID/PID, encoded in CN as "Mvid:FFFF Mpid:1234"
if vid is None and pid is None:
cn = distinguished_name.get_attributes_for_oid(x509.NameOID.COMMON_NAME)[0].value
cn = distinguished_name.get_attributes_for_oid(NameOID.COMMON_NAME)[0].value
vid = extract_fallback_tag_from_common_name(cn, 'Mvid:')
pid = extract_fallback_tag_from_common_name(cn, 'Mpid:')

Expand Down

0 comments on commit ccc9230

Please sign in to comment.