Fixes fake data generation.

Updates fake data generation such that network devices are created
with the required attribute 'name'. It had previously been called
'hostname', but the renaming in a recent commit had not been applied
to this tool, which is used for testing (and demos!).

Change-Id: I9bd859c1481fc8db02cac04d8005ee61370925e1
Closes-bug: #1660510
This commit is contained in:
Jim Baker 2017-01-30 20:07:41 -07:00
parent 163b27669f
commit b24831505d
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ class Inventory(object):
def create_netdevice(self, name, device_type):
network_devices_url = self.url + "/network-devices"
payload = {"hostname": name,
payload = {"name": name,
"model_name": "model-x",
"os_version": "version-1",
"device_type": device_type,