Uh oh!
There was an error while loading. Please reload this page.
Add server console output - #145
Conversation
| * | ||
| * @param int $length The number of lines, by default all lines will be returned. | ||
| * @return string | ||
| */ |
| * | ||
| * @param int $length The number of lines, by default all lines will be returned. | ||
| * @return string | ||
| */ |
There was a problem hiding this comment.
What is the logic behind default valuelength = -1?
There was a problem hiding this comment.
When given a length of -1, the API will return all lines. Since the default (when no length is specified) in the OpenStack docs is returning all lines as well, I thought it was reasonable to make this the default here.
There was a problem hiding this comment.
When given a length of -1, the API will return all lines
This is an assumption thus subject to change in the future; I think we better follow official docs that length shall not be included in the request if we want API to return all lines.
There was a problem hiding this comment.
Good point, will make that change soon 😄.
haphan
commented
Sep 3, 2017
@casperboone Only have one small comment for you. Otherwise all looks good. |
5730866 to
a37eb93Comparecasperboone
commented
Nov 8, 2017
@haphan Updated the implementation, could you please have another look? 😄 |
haphan
commented
Nov 9, 2017
@casperboone Can you rebase with master branch? |
a37eb93 to
f85eb66Comparecasperboone
commented
Nov 9, 2017
@haphan Done! :) |
This PR adds the ability to get the console output of a server (see OpenStack docs ).