From 6d7c6089ad9e723ff9e0d6b1d2adfc3b3b5cc118 Mon Sep 17 00:00:00 2001 From: Anton Leonov Date: Wed, 31 Jul 2019 19:29:59 +0300 Subject: [PATCH] Add fdb_clusterfile_content property to AppScalefile --- appscale/tools/local_state.py | 3 ++- appscale/tools/parse_args.py | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/appscale/tools/local_state.py b/appscale/tools/local_state.py index 3fb9ff68..cc0425c6 100644 --- a/appscale/tools/local_state.py +++ b/appscale/tools/local_state.py @@ -212,7 +212,8 @@ def generate_deployment_params(cls, options, node_layout, additional_creds): "user_commands": json.dumps(options.user_commands), "verbose": str(options.verbose), "flower_password": options.flower_password, - "default_max_appserver_memory": str(options.default_max_appserver_memory) + "default_max_appserver_memory": str(options.default_max_appserver_memory), + "fdb_clusterfile_content": options.fdb_clusterfile_content } creds.update(additional_creds) diff --git a/appscale/tools/parse_args.py b/appscale/tools/parse_args.py index b26d6140..099011d0 100644 --- a/appscale/tools/parse_args.py +++ b/appscale/tools/parse_args.py @@ -314,6 +314,8 @@ def add_allowed_flags(self, function): self.parser.add_argument('--user_commands', help="a base64-encoded YAML dictating the commands to run before " + "starting each AppController") + self.parser.add_argument('--fdb_clusterfile_content', + help="a string representing content of FoundationDB clusterfile") elif function == "appscale-gather-logs": self.parser.add_argument('--keyname', '-k', default=self.DEFAULT_KEYNAME, help="the keypair name to use")