state.yml -> state.yaml to avoid collision with manifests

This commit is contained in:
Jérôme Petazzoni
2017-12-18 18:39:17 -06:00
parent 1ef47531c8
commit 95fcfadb17
2 changed files with 3 additions and 3 deletions

2
.gitignore vendored
View File

@@ -7,4 +7,4 @@ prepare-vms/ips.pdf
prepare-vms/settings.yaml
prepare-vms/tags
slides/*.yml.html
slides/state.yml
slides/state.yaml

View File

@@ -28,14 +28,14 @@ class State(object):
self.next_step = 0
def load(self):
data = yaml.load(open("state.yml"))
data = yaml.load(open("state.yaml"))
self.interactive = bool(data["interactive"])
self.verify_status = bool(data["verify_status"])
self.simulate_type = bool(data["simulate_type"])
self.next_step = int(data["next_step"])
def save(self):
with open("state.yml", "w") as f:
with open("state.yaml", "w") as f:
yaml.dump(dict(
interactive=self.interactive,
verify_status=self.verify_status,