forked from cerc-io/stack-orchestrator
fix linter errors
This commit is contained in:
parent
3db443b2bb
commit
f088cbb3b0
@ -12,9 +12,11 @@
|
|||||||
|
|
||||||
# You should have received a copy of the GNU Affero General Public License
|
# You should have received a copy of the GNU Affero General Public License
|
||||||
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
# along with this program. If not, see <http:#www.gnu.org/licenses/>.
|
||||||
|
|
||||||
from stack_orchestrator.deploy.deployment_context import DeploymentContext
|
from stack_orchestrator.deploy.deployment_context import DeploymentContext
|
||||||
from ruamel.yaml import YAML
|
from ruamel.yaml import YAML
|
||||||
|
|
||||||
|
|
||||||
def create(context: DeploymentContext, extra_args):
|
def create(context: DeploymentContext, extra_args):
|
||||||
# Slightly modify the base fixturenet-eth compose file to replace the startup script for fixturenet-eth-geth-1
|
# Slightly modify the base fixturenet-eth compose file to replace the startup script for fixturenet-eth-geth-1
|
||||||
# We need to start geth with the flag to allow non eip-155 compliant transactions in order to publish the
|
# We need to start geth with the flag to allow non eip-155 compliant transactions in order to publish the
|
||||||
@ -22,7 +24,7 @@ def create(context: DeploymentContext, extra_args):
|
|||||||
fixturenet_eth_compose_file = context.deployment_dir.joinpath('compose', 'docker-compose-fixturenet-eth.yml')
|
fixturenet_eth_compose_file = context.deployment_dir.joinpath('compose', 'docker-compose-fixturenet-eth.yml')
|
||||||
|
|
||||||
with open(fixturenet_eth_compose_file, 'r') as yaml_file:
|
with open(fixturenet_eth_compose_file, 'r') as yaml_file:
|
||||||
yaml=YAML()
|
yaml = YAML()
|
||||||
yaml_data = yaml.load(yaml_file)
|
yaml_data = yaml.load(yaml_file)
|
||||||
|
|
||||||
new_script = '../config/fixturenet-optimism/run-geth.sh:/opt/testnet/run.sh'
|
new_script = '../config/fixturenet-optimism/run-geth.sh:/opt/testnet/run.sh'
|
||||||
@ -31,7 +33,7 @@ def create(context: DeploymentContext, extra_args):
|
|||||||
yaml_data['services']['fixturenet-eth-geth-1']['volumes'].append(new_script)
|
yaml_data['services']['fixturenet-eth-geth-1']['volumes'].append(new_script)
|
||||||
|
|
||||||
with open(fixturenet_eth_compose_file, 'w') as yaml_file:
|
with open(fixturenet_eth_compose_file, 'w') as yaml_file:
|
||||||
yaml=YAML()
|
yaml = YAML()
|
||||||
yaml.dump(yaml_data, yaml_file)
|
yaml.dump(yaml_data, yaml_file)
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
Loading…
Reference in New Issue
Block a user