Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
9de14c46fb | |||
1b8b101b64 |
@ -20,6 +20,10 @@ To get started with PVC, please see the [About](https://parallelvirtualcluster.r
|
||||
|
||||
## Changelog
|
||||
|
||||
#### v0.9.17
|
||||
|
||||
* [CLI] Fixes bugs in log follow output
|
||||
|
||||
#### v0.9.16
|
||||
|
||||
* Improves some CLI help messages
|
||||
|
@ -26,7 +26,7 @@ import pvcapid.flaskapi as pvc_api
|
||||
##########################################################
|
||||
|
||||
# Version string for startup output
|
||||
version = '0.9.16'
|
||||
version = '0.9.17'
|
||||
|
||||
if pvc_api.config['ssl_enabled']:
|
||||
context = (pvc_api.config['ssl_cert_file'], pvc_api.config['ssl_key_file'])
|
||||
|
@ -1002,8 +1002,9 @@ def follow_console_log(config, vm, lines=10):
|
||||
API arguments: lines={lines}
|
||||
API schema: {"name":"{vmname}","data":"{console_log}"}
|
||||
"""
|
||||
# We always grab 500 to match the follow call, but only _show_ `lines` number
|
||||
params = {
|
||||
'lines': lines
|
||||
'lines': 500
|
||||
}
|
||||
response = call_api(config, 'get', '/vm/{vm}/console'.format(vm=vm), params=params)
|
||||
|
||||
@ -1012,7 +1013,7 @@ def follow_console_log(config, vm, lines=10):
|
||||
|
||||
# Shrink the log buffer to length lines
|
||||
console_log = response.json()['data']
|
||||
shrunk_log = console_log.split('\n')[-lines:]
|
||||
shrunk_log = console_log.split('\n')[-int(lines):]
|
||||
loglines = '\n'.join(shrunk_log)
|
||||
|
||||
# Print the initial data and begin following
|
||||
|
6
debian/changelog
vendored
6
debian/changelog
vendored
@ -1,3 +1,9 @@
|
||||
pvc (0.9.17-0) unstable; urgency=high
|
||||
|
||||
* [CLI] Fixes bugs in log follow output
|
||||
|
||||
-- Joshua M. Boniface <joshua@boniface.me> Wed, 19 May 2021 17:06:29 -0400
|
||||
|
||||
pvc (0.9.16-0) unstable; urgency=high
|
||||
|
||||
* Improves some CLI help messages
|
||||
|
@ -18,6 +18,10 @@ To get started with PVC, please see the [About](https://parallelvirtualcluster.r
|
||||
|
||||
## Changelog
|
||||
|
||||
#### v0.9.17
|
||||
|
||||
* [CLI] Fixes bugs in log follow output
|
||||
|
||||
#### v0.9.16
|
||||
|
||||
* Improves some CLI help messages
|
||||
|
@ -53,7 +53,7 @@ import pvcnoded.CephInstance as CephInstance
|
||||
import pvcnoded.MetadataAPIInstance as MetadataAPIInstance
|
||||
|
||||
# Version string for startup output
|
||||
version = '0.9.16'
|
||||
version = '0.9.17'
|
||||
|
||||
###############################################################################
|
||||
# PVCD - node daemon startup program
|
||||
|
Reference in New Issue
Block a user