Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions examples/server_hardware.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
###
# (C) Copyright [2019] Hewlett Packard Enterprise Development LP
# (C) Copyright [2020] Hewlett Packard Enterprise Development LP
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -53,7 +53,7 @@
# Create a rack-mount server
# This is only supported on appliance which support rack mounted servers
server = server_hardwares.add(options)
print("Added rack mount server '%s'.\n uri = '%s'" % (server['name'], server['uri']))
print("Added rack mount server '%s'.\n uri = '%s'" % (server.data['name'], server.data['uri']))

# Create Multiple rack-mount servers
# This is only supported on appliance which support rack mounted servers
Expand All @@ -66,6 +66,7 @@
"configurationState": "Managed",
}
multiple_server = server_hardwares.add_multiple_servers(options_to_add_multiple_server)
pprint(multiple_server.data)
else:
print("\nCANNOT CREATE MULTIPLE SERVERS! Endpoint supported for REST API Versions 600 and above only.\n")

Expand Down