Skip to content

Commit 2060fcf

Browse files
committed
mca/base: use the project name when registering pvars
References #3918. Close when applied to v2.0.x, v2.x, and v3.0.x. Signed-off-by: Nathan Hjelm <[email protected]>
1 parent e5343c1 commit 2060fcf

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

opal/mca/base/mca_base_pvar.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/* -*- Mode: C; c-basic-offset:4 ; indent-tabs-mode:nil -*- */
22
/*
3-
* Copyright (c) 2013-2015 Los Alamos National Security, LLC. All rights
3+
* Copyright (c) 2013-2017 Los Alamos National Security, LLC. All rights
44
* reserved.
55
* Copyright (c) 2015 Cisco Systems, Inc. All rights reserved.
66
* Copyright (c) 2015 Bull SAS. All rights reserved.
@@ -348,9 +348,8 @@ int mca_base_component_pvar_register (const mca_base_component_t *component, con
348348
int bind, mca_base_pvar_flag_t flags, mca_base_get_value_fn_t get_value,
349349
mca_base_set_value_fn_t set_value, mca_base_notify_fn_t notify, void *ctx)
350350
{
351-
/* XXX -- component_update -- We will stash the project name in the component */
352351
/* invalidate this variable if the component's group is deregistered */
353-
return mca_base_pvar_register(NULL, component->mca_type_name, component->mca_component_name,
352+
return mca_base_pvar_register(component->mca_project_name, component->mca_type_name, component->mca_component_name,
354353
name, description, verbosity, var_class, type, enumerator, bind,
355354
flags | MCA_BASE_PVAR_FLAG_IWG, get_value, set_value, notify, ctx);
356355
}

0 commit comments

Comments
 (0)