packethost / packet-python

A Python client for the Equinix Metal API
http://metal.equinix.com/
GNU Lesser General Public License v3.0
40 stars 50 forks source link

status -> state #43

Closed johnstudarus closed 5 years ago

johnstudarus commented 6 years ago

The "Checking the status and rebooting a Device" example on the PyPi document page references 'Status' however, the correct attribute is 'State'.

import packet manager = packet.Manager(auth_token="yourapiauthtoken")

device = manager.get_device('device-id') print(device.status) <----- should be device.state device.reboot()

mmlb commented 5 years ago

Re-opening since this mentions pypi, will be pushing an update soon.

mmlb commented 5 years ago

Now up on pypi in v1.38.1, :toot:

johnstudarus commented 5 years ago

Thanks!