File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -919,17 +919,17 @@ impl ContainerConfig {
919919 // instantiates the StackableTopologyProvider (which reads TOPOLOGY_LABELS).
920920 // Set as a default here (before the overrides below) so users can still
921921 // override it via `envOverrides`.
922- if * role == HdfsNodeRole :: Name {
923- if let Some ( rack_awareness) = hdfs. rackawareness_config ( ) {
924- env . insert (
925- "TOPOLOGY_LABELS" . to_string ( ) ,
926- EnvVar {
927- name : "TOPOLOGY_LABELS" . to_string ( ) ,
928- value : Some ( rack_awareness ) ,
929- .. EnvVar :: default ( )
930- } ,
931- ) ;
932- }
922+ if * role == HdfsNodeRole :: Name
923+ && let Some ( rack_awareness) = hdfs. rackawareness_config ( )
924+ {
925+ env . insert (
926+ "TOPOLOGY_LABELS" . to_string ( ) ,
927+ EnvVar {
928+ name : "TOPOLOGY_LABELS" . to_string ( ) ,
929+ value : Some ( rack_awareness ) ,
930+ .. EnvVar :: default ( )
931+ } ,
932+ ) ;
933933 }
934934
935935 env. insert (
You can’t perform that action at this time.
0 commit comments