From 7f8d7d56a61e4fb70f2392594adad9b3be095fee Mon Sep 17 00:00:00 2001 From: Dan Walsh Date: Wed, 15 Jun 2016 12:57:09 -0400 Subject: [PATCH 1/2] If OSTree is not installed, atomic images is blowing up This fix will check if OSTREE_PRESENT, and return None so that OSTree will not get called. Will not do any of the system containers checks. Closes: #424 Approved by: cgwalters --- Atomic/atomic.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Atomic/atomic.py b/Atomic/atomic.py index f583943..1049097 100644 --- a/Atomic/atomic.py +++ b/Atomic/atomic.py @@ -1297,6 +1297,9 @@ class Atomic(object): "/var/lib/containers/atomic" def _get_ostree_repo(self): + if not OSTREE_PRESENT: + return None + repo_location = os.environ.get("ATOMIC_OSTREE_REPO") or \ self.get_atomic_config_item(["ostree_repository"]) or \ "/ostree/repo" -- 1.8.3.1