New upstream release
Jonathan Carter
5 years ago
|
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 |
|
0 | 9 |
# 3.6.0
|
1 | 10 |
|
2 | 11 |
2019-02-27
|
29 | 29 |
|
30 | 30 |
------------------------------------------------------------------------
|
31 | 31 |
|
32 | |
BundleWrap is © 2013 - 2018 [Torsten Rehn](mailto:torsten@rehn.email)
|
|
32 |
BundleWrap is © 2013 - 2019 [Torsten Rehn](mailto:torsten@rehn.email)
|
0 | 0 |
# -*- coding: utf-8 -*-
|
1 | 1 |
from __future__ import unicode_literals
|
2 | 2 |
|
3 | |
VERSION = (3, 6, 0)
|
|
3 |
VERSION = (3, 6, 1)
|
4 | 4 |
VERSION_STRING = ".".join([str(v) for v in VERSION])
|
4 | 4 |
|
5 | 5 |
from bundlewrap.exceptions import BundleError
|
6 | 6 |
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 _
|
8 | 8 |
|
9 | 9 |
|
10 | 10 |
def svc_start(node, svcname):
|
|
32 | 32 |
"systemctl is-enabled -- {}".format(quote(svcname)),
|
33 | 33 |
may_fail=True,
|
34 | 34 |
)
|
35 | |
return result.return_code == 0
|
|
35 |
return (
|
|
36 |
result.return_code == 0 and
|
|
37 |
force_text(result.stdout).strip() != "runtime-enabled"
|
|
38 |
)
|
36 | 39 |
|
37 | 40 |
|
38 | 41 |
def svc_disable(node, svcname):
|
86 | 86 |
if self._available is None:
|
87 | 87 |
try:
|
88 | 88 |
self._value = self.callback(**self.kwargs)
|
|
89 |
if isinstance(self._value, Fault):
|
|
90 |
self._value = self._value.value
|
89 | 91 |
self._available = True
|
90 | 92 |
except FaultUnavailable as exc:
|
91 | 93 |
self._available = False
|
|
103 | 105 |
|
104 | 106 |
def __len__(self):
|
105 | 107 |
return len(self.value)
|
|
108 |
|
|
109 |
def __lt__(self, other):
|
|
110 |
return self.value < other.value
|
106 | 111 |
|
107 | 112 |
def __str__(self):
|
108 | 113 |
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 |
|
0 | 6 |
bundlewrap (3.6.0-1) unstable; urgency=medium
|
1 | 7 |
|
2 | 8 |
* New upstream release
|
16 | 16 |
|
17 | 17 |
setup(
|
18 | 18 |
name="bundlewrap",
|
19 | |
version="3.6.0",
|
|
19 |
version="3.6.1",
|
20 | 20 |
description="Config management with Python",
|
21 | 21 |
long_description=(
|
22 | 22 |
"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"
|