Skip to content

Commit e12dd0c

Browse files
committed
Merge pull request #88 from dotnetpro/FixComputing
Minor fixes for cloud computing
2 parents f6b62b7 + bab20c9 commit e12dd0c

File tree

5 files changed

+8
-4
lines changed

5 files changed

+8
-4
lines changed

src/corelib/Core/Domain/AddressDetails.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace net.openstack.Core.Domain
66
public class AddressDetails
77
{
88
[DataMember(Name = "addr")]
9-
internal string Address { get; set; }
9+
public string Address { get; set; }
1010

1111
[DataMember]
1212
public string Version { get; set; }
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
11
using System;
22
using System.Collections.Generic;
33
using System.Linq;
4+
using System.Runtime.Serialization;
45
using System.Text;
56

67
namespace net.openstack.Core.Domain
78
{
9+
[DataContract]
810
public class Personality
911
{
12+
[DataMember(Name = "path")]
1013
public string Path { get; set; }
1114

15+
[DataMember(Name = "contents")]
1216
public string Content { get; set; }
1317
}
1418
}

src/corelib/Core/Providers/IComputeProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public interface IComputeProvider
5656
/// <returns>
5757
/// Details for the new server <see cref="net.openstack.Core.Domain.NewServer" /> <remarks>NOTE: This is the only time the servers admin password is retruned.</remarks>
5858
/// </returns>
59-
NewServer CreateServer(string cloudServerName, string imageName, string flavor, string diskConfig = null, Metadata metadata = null, string personality = null, bool attachToServiceNetwork = false, bool attachToPublicNetwork = false, IEnumerable<Guid> networks = null, string region = null, CloudIdentity identity = null);
59+
NewServer CreateServer(string cloudServerName, string imageName, string flavor, string diskConfig = null, Metadata metadata = null, Personality[] personality = null, bool attachToServiceNetwork = false, bool attachToPublicNetwork = false, IEnumerable<Guid> networks = null, string region = null, CloudIdentity identity = null);
6060

6161
/// <summary>
6262
/// Retrieves the details for a given server.

src/corelib/Providers/Rackspace/CloudServersProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ public IEnumerable<Server> ListServersWithDetails(string imageId = null, string
122122
}
123123

124124
/// <inheritdoc />
125-
public NewServer CreateServer(string cloudServerName, string imageName, string flavor, string diskConfig = null, Metadata metadata = null, string personality = null, bool attachToServiceNetwork = false, bool attachToPublicNetwork = false, IEnumerable<Guid> networks = null, string region = null, CloudIdentity identity = null)
125+
public NewServer CreateServer(string cloudServerName, string imageName, string flavor, string diskConfig = null, Metadata metadata = null, Personality[] personality = null, bool attachToServiceNetwork = false, bool attachToPublicNetwork = false, IEnumerable<Guid> networks = null, string region = null, CloudIdentity identity = null)
126126
{
127127
var urlPath = new Uri(string.Format("{0}/servers", GetServiceEndpoint(identity, region)));
128128

src/corelib/Providers/Rackspace/Objects/Request/CreateServerRequest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ internal class CreateServerDetails
4040
public NewServerNetwork[] Networks { get; set; }
4141

4242
[DataMember(Name = "personality", EmitDefaultValue = true)]
43-
public string Personality { get; set; }
43+
public Personality[] Personality { get; set; }
4444

4545
public CreateServerDetails()
4646
{

0 commit comments

Comments
 (0)