mirror of
https://github.com/Telecominfraproject/OpenNetworkLinux.git
synced 2026-01-28 10:21:23 +00:00
Don't take an exception if the manifest doesn't exist.
- This is useful particularly for imports from the loader.
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import os
|
||||
import json
|
||||
|
||||
class OnlVersionManifest(object):
|
||||
@@ -30,8 +31,8 @@ class OnlLoaderVersion(OnlVersionBase):
|
||||
#
|
||||
# print onl.versions.rootfs.BUILD_TIMESTAMP
|
||||
#
|
||||
|
||||
rootfs = OnlRootfsVersion()
|
||||
loader = OnlLoaderVersion()
|
||||
rootfs = OnlRootfsVersion() if os.path.exists(OnlRootfsVersion.MANIFEST) else None
|
||||
loader = OnlLoaderVersion() if os.path.exists(OnlLoaderVersion.MANIFEST) else None
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user