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 @@ -226,12 +226,11 @@ def init_architecture_and_os(self):
226226 if self .json_manifest .get ("architecture" , None ) or self .json_manifest .get ("os" , None ):
227227 self .architecture = self .json_manifest .get ("architecture" , None )
228228 self .os = self .json_manifest .get ("os" , None )
229- return
230-
231- config_artifact = self .config_blob ._artifacts .get ()
232- config_data , _ = get_content_data (config_artifact )
233- self .architecture = config_data .get ("architecture" , None )
234- self .os = config_data .get ("os" , None )
229+ elif self .config_blob :
230+ config_artifact = self .config_blob ._artifacts .get ()
231+ config_data , _ = get_content_data (config_artifact )
232+ self .architecture = config_data .get ("architecture" , None )
233+ self .os = config_data .get ("os" , None )
235234
236235 def init_compressed_image_size (self ):
237236 # manifestv2 schema1 has only blobSum definition for each layer
You can’t perform that action at this time.
0 commit comments