Skip to content

Commit 44dd15f

Browse files
authored
fix job config section (#2063)
* fix job config section * fix unused imports
1 parent 55bbdf8 commit 44dd15f

File tree

3 files changed

+2
-7
lines changed

3 files changed

+2
-7
lines changed

nvflare/apis/fl_constant.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,6 @@ class SiteType:
360360
class SystemConfigs:
361361
STARTUP_CONF = "start_config"
362362
RESOURCES_CONF = "resources_config"
363-
APPLICATION_CONF = "application_config"
364363

365364

366365
class SecureTrainConst:

nvflare/private/fed/client/client_json_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import os
1615
import re
1716

1817
from nvflare.apis.executor import Executor
1918
from nvflare.apis.fl_component import FLComponent
20-
from nvflare.apis.fl_constant import SystemConfigs
2119
from nvflare.fuel.utils.argument_utils import parse_vars
2220
from nvflare.fuel.utils.config_service import ConfigService
2321
from nvflare.fuel.utils.json_scanner import Node
@@ -142,7 +140,7 @@ def finalize_config(self, config_ctx: ConfigContext):
142140
)
143141

144142
ConfigService.initialize(
145-
section_files={SystemConfigs.APPLICATION_CONF: os.path.basename(self.config_files[0])},
143+
section_files={},
146144
config_path=[self.args.workspace],
147145
parsed_args=self.args,
148146
var_dict=self.cmd_vars,

nvflare/private/fed/server/server_json_config.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,9 @@
1212
# See the License for the specific language governing permissions and
1313
# limitations under the License.
1414

15-
import os
1615
import re
1716

1817
from nvflare.apis.fl_component import FLComponent
19-
from nvflare.apis.fl_constant import SystemConfigs
2018
from nvflare.apis.responder import Responder
2119
from nvflare.fuel.utils.argument_utils import parse_vars
2220
from nvflare.fuel.utils.config_service import ConfigService
@@ -161,7 +159,7 @@ def finalize_config(self, config_ctx: ConfigContext):
161159
)
162160

163161
ConfigService.initialize(
164-
section_files={SystemConfigs.APPLICATION_CONF: os.path.basename(self.config_files[0])},
162+
section_files={},
165163
config_path=[self.args.workspace],
166164
parsed_args=self.args,
167165
var_dict=self.cmd_vars,

0 commit comments

Comments
 (0)