File tree 1 file changed +5
-2
lines changed 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -1165,12 +1165,15 @@ def _get_trust_config(args: argparse.Namespace) -> ClientTrustConfig:
1165
1165
The configuration may come from explicit argument (--trust-config) or from the TUF
1166
1166
repository of the used Sigstore instance.
1167
1167
"""
1168
+ # Some commands do not have offline argument, parse carefully
1169
+ offline = args .offline if "offline" in args else False
1170
+
1168
1171
if args .trust_config :
1169
1172
return ClientTrustConfig .from_json (args .trust_config .read_text ())
1170
1173
elif args .staging :
1171
- return ClientTrustConfig .staging (offline = args . offline )
1174
+ return ClientTrustConfig .staging (offline = offline )
1172
1175
else :
1173
- return ClientTrustConfig .production (offline = args . offline )
1176
+ return ClientTrustConfig .production (offline = offline )
1174
1177
1175
1178
1176
1179
def _get_identity (
You can’t perform that action at this time.
0 commit comments