File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed
Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 1+ Fix an `AttributeError` issue that most commonly appears when running the `container-handle-image-data` management command.
Original file line number Diff line number Diff line change @@ -228,12 +228,11 @@ def init_architecture_and_os(self):
228228 if self .json_manifest .get ("architecture" , None ) or self .json_manifest .get ("os" , None ):
229229 self .architecture = self .json_manifest .get ("architecture" , None )
230230 self .os = self .json_manifest .get ("os" , None )
231- return
232-
233- config_artifact = self .config_blob ._artifacts .get ()
234- config_data , _ = get_content_data (config_artifact )
235- self .architecture = config_data .get ("architecture" , None )
236- self .os = config_data .get ("os" , None )
231+ elif self .config_blob :
232+ config_artifact = self .config_blob ._artifacts .get ()
233+ config_data , _ = get_content_data (config_artifact )
234+ self .architecture = config_data .get ("architecture" , None )
235+ self .os = config_data .get ("os" , None )
237236
238237 def init_compressed_image_size (self ):
239238 # manifestv2 schema1 has only blobSum definition for each layer
You can’t perform that action at this time.
0 commit comments