File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -302,7 +302,8 @@ const StateType = new GraphQLObjectType({
302
302
// The metadata_consolidated query requires the test case name to be non-null.
303
303
if ( ! testcase_name ) return null ;
304
304
// Guess product version from the NVR.
305
- const { nvr, type } = parentValue . broker_msg_body . artifact ;
305
+ const { nsvc, type } = parentValue . broker_msg_body . artifact ;
306
+ let { nvr } = parentValue . broker_msg_body . artifact ;
306
307
// Currently, only RPM and module builds are supported.
307
308
if ( ! [ 'brew-build' , 'redhat-module' ] . includes ( type ) ) {
308
309
log (
@@ -311,14 +312,15 @@ const StateType = new GraphQLObjectType({
311
312
) ;
312
313
return null ;
313
314
}
315
+ if ( type === 'redhat-module' ) {
316
+ nvr = convertNsvcToNvr ( nsvc ) ;
317
+ }
314
318
const product_version = `rhel-${ getOSVersionFromNvr ( nvr , type ) } ` ;
315
-
316
319
log (
317
320
'Delegating metadata query for state: testcase %s, product %s' ,
318
321
testcase_name ,
319
322
product_version ,
320
323
) ;
321
-
322
324
return await delegateToSchema ( {
323
325
schema,
324
326
operation : 'query' ,
You can’t perform that action at this time.
0 commit comments