Codebase list bundlewrap / cdb5c0c
New upstream release Jonathan Carter 5 years ago
7 changed file(s) with 28 addition(s) and 5 deletion(s). Raw diff Collapse all Expand all
0 # 3.6.1
1
2 2019-03-12
3
4 * Faults can now be sorted
5 * fixed detection of runtime-enabled `svc_systemd`
6 * fixed resolving nested Faults
7
8
09 # 3.6.0
110
211 2019-02-27
2929
3030 ------------------------------------------------------------------------
3131
32 BundleWrap is © 2013 - 2018 [Torsten Rehn](mailto:torsten@rehn.email)
32 BundleWrap is © 2013 - 2019 [Torsten Rehn](mailto:torsten@rehn.email)
00 # -*- coding: utf-8 -*-
11 from __future__ import unicode_literals
22
3 VERSION = (3, 6, 0)
3 VERSION = (3, 6, 1)
44 VERSION_STRING = ".".join([str(v) for v in VERSION])
44
55 from bundlewrap.exceptions import BundleError
66 from bundlewrap.items import Item
7 from bundlewrap.utils.text import mark_for_translation as _
7 from bundlewrap.utils.text import force_text, mark_for_translation as _
88
99
1010 def svc_start(node, svcname):
3232 "systemctl is-enabled -- {}".format(quote(svcname)),
3333 may_fail=True,
3434 )
35 return result.return_code == 0
35 return (
36 result.return_code == 0 and
37 force_text(result.stdout).strip() != "runtime-enabled"
38 )
3639
3740
3841 def svc_disable(node, svcname):
8686 if self._available is None:
8787 try:
8888 self._value = self.callback(**self.kwargs)
89 if isinstance(self._value, Fault):
90 self._value = self._value.value
8991 self._available = True
9092 except FaultUnavailable as exc:
9193 self._available = False
103105
104106 def __len__(self):
105107 return len(self.value)
108
109 def __lt__(self, other):
110 return self.value < other.value
106111
107112 def __str__(self):
108113 return str(self.value)
0 bundlewrap (3.6.1-1) unstable; urgency=medium
1
2 * New upstream release
3
4 -- Jonathan Carter <jcc@debian.org> Sat, 23 Mar 2019 16:44:03 +0200
5
06 bundlewrap (3.6.0-1) unstable; urgency=medium
17
28 * New upstream release
1616
1717 setup(
1818 name="bundlewrap",
19 version="3.6.0",
19 version="3.6.1",
2020 description="Config management with Python",
2121 long_description=(
2222 "By allowing for easy and low-overhead config management, BundleWrap fills the gap between complex deployments using Chef or Puppet and old school system administration over SSH.\n"