From 07e6e7eca6e10a8b56ec32d46a9e88a460ac2afd Mon Sep 17 00:00:00 2001 From: Zhenguo Niu Date: Tue, 21 Jan 2020 07:05:33 +0000 Subject: [PATCH] Fix SDRS protected instances --- openstack/sdrs/v1/protectedinstances/requests.go | 4 ++-- openstack/sdrs/v1/protectedinstances/results.go | 2 -- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/openstack/sdrs/v1/protectedinstances/requests.go b/openstack/sdrs/v1/protectedinstances/requests.go index d45a5ed05..3cabdcecf 100644 --- a/openstack/sdrs/v1/protectedinstances/requests.go +++ b/openstack/sdrs/v1/protectedinstances/requests.go @@ -24,12 +24,12 @@ type CreateOpts struct { Name string `json:"name" required:"true"` //Instance Description Description string `json:"description,omitempty"` + //Cluster ID + ClusterID string `json:"cluster_id,omitempty"` //Subnet ID SubnetID string `json:"primary_subnet_id,omitempty"` //IP Address IpAddress string `json:"primary_ip_address,omitempty"` - //Flavor ID - FlavorRef string `json:"flavorRef,omitempty"` } // ToInstanceCreateMap builds a create request body from CreateOpts. diff --git a/openstack/sdrs/v1/protectedinstances/results.go b/openstack/sdrs/v1/protectedinstances/results.go index 88f757762..0893a85f8 100644 --- a/openstack/sdrs/v1/protectedinstances/results.go +++ b/openstack/sdrs/v1/protectedinstances/results.go @@ -19,8 +19,6 @@ type Instance struct { SourceServer string `json:"source_server"` //Target Server TargetServer string `json:"target_server"` - //Priority Station - PriorityStation string `json:"priority_station"` //Attachment Attachment []Attachment `json:"attachment"` }