Skip to content
This repository was archived by the owner on Feb 2, 2021. It is now read-only.

Commit 05a8f24

Browse files
author
earthmant
committed
improving handling of config
1 parent c4d6583 commit 05a8f24

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

scripts/manager/tasks.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
from __future__ import with_statement
2+
import os
23
from tempfile import NamedTemporaryFile
34
from fabric.api import get, sudo, run, hide, settings
45
from cloudify import ctx
@@ -12,6 +13,8 @@ def install_rpm(_rpm):
1213
sudo("rpm -i {0}".format(_rpm))
1314
except Exception as e:
1415
raise NonRecoverableError(str(e))
16+
if not os.path.exists(CONFIG_PATH):
17+
raise RecoverableError('Failed to install RPM.')
1518
return True
1619

1720
def install_requirements():

0 commit comments

Comments
 (0)