Skip to content

Commit 225b670

Browse files
committed
feat: remove unused function
Signed-off-by: ImMin5 <[email protected]> (cherry picked from commit fcb1d3c)
1 parent bbb2f33 commit 225b670

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

src/spaceone/core/command.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ def grpc(package, port=None, config_file=None, module_path=None):
4646
@click.option('-m', '--module-path', type=click.Path(exists=True), multiple=True, help='Module path')
4747
def rest(package, host=None, port=None, config_file=None, module_path=None):
4848
"""Run a FastAPI REST server"""
49-
_set_environment(package, host, port, config_file, module_path)
5049
_set_server_config(package, module_path, port, config_file=config_file)
5150
fastapi.serve()
5251

@@ -165,13 +164,5 @@ def _print_config(output):
165164
print(utils.dump_yaml(data))
166165

167166

168-
def _set_environment(package, host, port, config_file, module_path):
169-
os.environ['SPACEONE_PACKAGE'] = package
170-
os.environ['SPACEONE_HOST'] = host
171-
os.environ['SPACEONE_MODULE_PATH'] = ', '.join(module_path)
172-
os.environ['SPACEONE_PORT'] = str(port)
173-
os.environ['SPACEONE_CONFIG_FILE'] = config_file
174-
175-
176167
if __name__ == '__main__':
177168
cli()

0 commit comments

Comments
 (0)