File tree Expand file tree Collapse file tree
rust/operator-binary/src/crd Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -142,34 +142,17 @@ pub struct HbaseConfigOverrides {
142142
143143impl KeyValueOverridesProvider for HbaseConfigOverrides {
144144 fn get_key_value_overrides ( & self , file : & str ) -> BTreeMap < String , Option < String > > {
145- match file {
146- HBASE_SITE_XML => self
147- . hbase_site_xml
148- . as_ref ( )
149- . map ( KeyValueConfigOverrides :: as_product_config_overrides)
150- . unwrap_or_default ( ) ,
151- HBASE_ENV_SH => self
152- . hbase_env_sh
153- . as_ref ( )
154- . map ( KeyValueConfigOverrides :: as_product_config_overrides)
155- . unwrap_or_default ( ) ,
156- SSL_SERVER_XML => self
157- . ssl_server_xml
158- . as_ref ( )
159- . map ( KeyValueConfigOverrides :: as_product_config_overrides)
160- . unwrap_or_default ( ) ,
161- SSL_CLIENT_XML => self
162- . ssl_client_xml
163- . as_ref ( )
164- . map ( KeyValueConfigOverrides :: as_product_config_overrides)
165- . unwrap_or_default ( ) ,
166- JVM_SECURITY_PROPERTIES_FILE => self
167- . security_properties
168- . as_ref ( )
169- . map ( KeyValueConfigOverrides :: as_product_config_overrides)
170- . unwrap_or_default ( ) ,
171- _ => BTreeMap :: new ( ) ,
172- }
145+ let field = match file {
146+ HBASE_SITE_XML => self . hbase_site_xml . as_ref ( ) ,
147+ HBASE_ENV_SH => self . hbase_env_sh . as_ref ( ) ,
148+ SSL_SERVER_XML => self . ssl_server_xml . as_ref ( ) ,
149+ SSL_CLIENT_XML => self . ssl_client_xml . as_ref ( ) ,
150+ JVM_SECURITY_PROPERTIES_FILE => self . security_properties . as_ref ( ) ,
151+ _ => None ,
152+ } ;
153+ field
154+ . map ( KeyValueConfigOverrides :: as_product_config_overrides)
155+ . unwrap_or_default ( )
173156 }
174157}
175158
You can’t perform that action at this time.
0 commit comments