Skip to content

Commit

Permalink
Fix ModuleIdentityDelete (service returns 204, not 200) (#34)
Browse files Browse the repository at this point in the history
* On the management API, delete identities response should be status="204"
Server is correct, so I will update edgeAgent and the YAML file.

* Discovered a problem with runtime info and GA (1.0.0) iotedged
  • Loading branch information
darobs authored and myagley committed Jul 18, 2018
1 parent f2baacf commit 2163103
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1336,7 +1336,7 @@ public async System.Threading.Tasks.Task DeleteIdentityAsync(string api_version,
ProcessResponse(client_, response_);

var status_ = ((int)response_.StatusCode).ToString();
if (status_ == "200")
if (status_ == "200" || status_ == "204")
{
return;
}
Expand Down Expand Up @@ -1450,7 +1450,7 @@ public string Architecture
}
}

[Newtonsoft.Json.JsonProperty("version", Required = Newtonsoft.Json.Required.Always)]
[Newtonsoft.Json.JsonProperty("version", Required = Newtonsoft.Json.Required.DisallowNull)]
public string Version
{
get { return _version; }
Expand Down
3 changes: 1 addition & 2 deletions edgelet/api/management.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ paths:
required: true
type: string
responses:
'200':
'204':
description: Ok
'404':
description: Not Found
Expand Down Expand Up @@ -530,7 +530,6 @@ definitions:
required:
- osType
- architecture
- version
example:
osType: "linux/windows"
architecture: "arm/amd64/x86"
Expand Down

0 comments on commit 2163103

Please sign in to comment.