Owner
```
diff --git a/main.py b/main.py
index 929b0a1..3629e2b 100644
--- a/main.py
+++ b/main.py
@@ -147,7 +147,10 @@ class CloudInitApp:
filepath = os.path.join(PATH, "data", data['local-hostname'], META_DATA_FILENAME)
if os.path.exists(filepath):
with open(filepath, "r") as metadata:
- data.update(yaml.safe_load(metadata))
+ try:
+ data.update(yaml.safe_load(metadata))
+ except ValueError:
+ pass
cherrypy.response.headers['Content-Type'] = \
'text/yaml'
```
Loading…
Reference in New Issue
There is no content yet.
Delete Branch '%!s(<nil>)'
Deleting a branch is permanent. It CANNOT be undone. Continue?