File tree Expand file tree Collapse file tree 5 files changed +32
-3
lines changed Expand file tree Collapse file tree 5 files changed +32
-3
lines changed Original file line number Diff line number Diff line change 1
1
# Python bindings for Carbon Black REST API
2
2
3
- ** Current version: 1.2.0 **
3
+ ** Current version: 1.3.1 **
4
4
5
5
[ ![ Build Status] ( https://travis-ci.org/carbonblack/cbapi-python.svg?branch=master )] ( https://travis-ci.org/carbonblack/cbapi-python )
6
6
Original file line number Diff line number Diff line change 1
1
CbAPI Changelog
2
2
===============
3
3
4
+ CbAPI 1.3.1 - Released August 3, 2017
5
+ -------------------------------------
6
+
7
+ This is a bugfix release with minor changes:
8
+
9
+ * Cb Response
10
+ * Add ``partition_operations.py `` script to demonstrate the use of the StoragePartition model object.
11
+ * Fix errors when accessing the ``.start `` attribute of child processes.
12
+ * Fix errors generated by the ``walk_children.py `` example script. The output has been changed as well to indicate
13
+ the process lifetime, console UI link, and command lines.
14
+ * Add an ``.end `` attribute to the Process model object. This attribute reports back either ``None `` if the
15
+ process is still executing, or the last event time associated with the process if it has exited. See the
16
+ ``walk_children.py `` script for an example of how to calculate process lifetime.
17
+ * Fix errors when using the ``.parents `` attribute of a Process.
18
+ * Add ``wait_for_completion `` flag to ``create_process `` Live Response method, and default to ``True ``. The
19
+ ``create_process `` method will now wait for the target process to complete before returning.
20
+
21
+ * Cb Defense
22
+ * Add ``wait_for_completion `` flag to ``create_process `` Live Response method, and default to ``True ``. The
23
+ ``create_process `` method will now wait for the target process to complete before returning.
24
+
25
+
4
26
CbAPI 1.3.0 - Released July 27, 2017
5
27
------------------------------------
6
28
Original file line number Diff line number Diff line change 61
61
# The short X.Y version.
62
62
version = u'1.3'
63
63
# The full version, including alpha/beta/rc tags.
64
- release = u'1.3.0 '
64
+ release = u'1.3.1 '
65
65
66
66
# The language for content autogenerated by Sphinx. Refer to documentation
67
67
# for a list of supported languages.
Original file line number Diff line number Diff line change 1
1
import sys
2
+ from distutils .version import LooseVersion
3
+
2
4
from cbapi .response .models import StoragePartition
3
5
from cbapi .example_helpers import build_cli_parser , get_cb_response_object , get_object_by_name_or_id
4
6
from cbapi .errors import ServerError
@@ -72,6 +74,11 @@ def main():
72
74
args = parser .parse_args ()
73
75
cb = get_cb_response_object (args )
74
76
77
+ if cb .cb_server_version < LooseVersion ("6.1.0" ):
78
+ parser .error ("This script can only work with server versions >= 6.1.0; {0} is running {1}"
79
+ .format (cb .url , cb .cb_server_version ))
80
+ return 1
81
+
75
82
if args .command_name == "list" :
76
83
return list_partitions (cb , parser , args )
77
84
elif args .command_name == "create" :
Original file line number Diff line number Diff line change 28
28
29
29
setup (
30
30
name = 'cbapi' ,
31
- version = '1.3.0 ' ,
31
+ version = '1.3.1 ' ,
32
32
url = 'https://github.com/carbonblack/cbapi-python' ,
33
33
license = 'MIT' ,
34
34
author = 'Carbon Black' ,
You can’t perform that action at this time.
0 commit comments