New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding some doc examples - Issues258 #527
Conversation
@@ -288,6 +335,65 @@ def place_order(self, **kwargs): | |||
:param boolean no_public: True if this server should only have private | |||
interfaces | |||
:param list extras: List of extra feature names | |||
|
|||
.. warning:: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This example/description is no longer true. place_order uses the simplified hardware ordering and is able to take more-or-less human readable values. See the new slcli server create-options
and slcli server create
commands to see how it works now.
Removed the examples for place order, when I figure out the new hotness I'll add a more relevant example. I removed the cancel_metal example |
@@ -26,6 +26,15 @@ class HardwareManager(utils.IdentifierMixin, object): | |||
manager to handle ordering. | |||
If none is provided, one will be | |||
auto initialized. | |||
Example:: | |||
# Initialize the Manager. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A blank line is required after Example::
Example:: | ||
|
||
# Cancels hardware id 1234 | ||
result = mrg.cancel_hardware(hardware_id=1234) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should this be mgr?
Adding some doc examples - Issues258
some basic examples on the vs and sever managers mostly.