diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-10 09:22:45 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-10 09:22:45 +0000 |
| commit | 71d19afe1cf4cfb694f9b7f4245ab29e20a54f8f (patch) | |
| tree | f626bb1f9bfcda502b7bf0909873ba2c72f937de | |
| parent | 7756471753ccd5bfc40ba84a00420bd9ea157314 (diff) | |
Nicer error if windows prefix is not configured when it is required.split
| -rw-r--r-- | cdist/target.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cdist/target.py b/cdist/target.py index b4f7727..434d7d3 100644 --- a/cdist/target.py +++ b/cdist/target.py @@ -92,6 +92,8 @@ class WindowsTarget(Target): super(WindowsTarget, self).__init__('windows', directory) self.bits = bits + if globals.config.get('windows_environment_prefix') is None: + raise Error('windows prefix not configured') self.windows_prefix = '%s/%d' % (globals.config.get('windows_environment_prefix'), self.bits) if not os.path.exists(self.windows_prefix): raise Error('windows prefix %s does not exist' % self.windows_prefix) @@ -291,4 +293,3 @@ def factory(s, debug, work): target.debug = debug return target - |
