Skip to content

Commit

Permalink
Fix errror in "Namespace" docs (#161)
Browse files Browse the repository at this point in the history
The json to create or update a namespace is wrong, since it needs "Name", not "Namespace".
  • Loading branch information
freebacca committed Apr 22, 2024
1 parent d5d5c4c commit 7239fec
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/api/namespace.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import nomad
my_nomad = nomad.Nomad(host='192.168.33.10')
namespace = {
"Namespace": "api-prod",
"Name": "api-prod",
"Description": "Production API Servers"
}
my_nomad.namespace.create_namespace(namespace)
Expand All @@ -36,7 +36,7 @@ import nomad
my_nomad = nomad.Nomad(host='192.168.33.10')
namespace = {
"Namespace": "api-prod",
"Name": "api-prod",
"Description": "Production API Servers"
}
my_nomad.namespace.create_namespace(namespace)
Expand Down Expand Up @@ -79,7 +79,7 @@ import nomad
my_nomad = nomad.Nomad(host='192.168.33.10')
namespace = {
"Namespace": "api-prod",
"Name": "api-prod",
"Description": "Production API Servers"
}
my_nomad.namespace.create_namespace("api-prod", namespace)
Expand Down

0 comments on commit 7239fec

Please sign in to comment.