fixed up zone-add
This commit is contained in:
parent
7f3237e143
commit
1b64a3823f
@ -108,7 +108,7 @@ class ZoneManager(local_base.BootingManagerWithFind):
|
||||
:param weight_scale: The child zone's weight scale.
|
||||
"""
|
||||
body = {"zone": {
|
||||
"zone_name": zone_name,
|
||||
"name": zone_name,
|
||||
"api_url": api_url,
|
||||
"username": username,
|
||||
"password": password,
|
||||
|
@ -107,7 +107,7 @@ class ZoneManager(base.BootingManagerWithFind):
|
||||
:param weight_scale: The child zone's weight scale.
|
||||
"""
|
||||
body = {"zone": {
|
||||
"zone_name": zone_name,
|
||||
"name": zone_name,
|
||||
"api_url": api_url,
|
||||
"username": username,
|
||||
"password": password,
|
||||
|
@ -317,7 +317,7 @@ class ShellTest(utils.TestCase):
|
||||
'--weight_offset=0.0 --weight_scale=1.0')
|
||||
self.assert_called(
|
||||
'POST', '/zones',
|
||||
{'zone': {'zone_name': 'child_zone',
|
||||
{'zone': {'name': 'child_zone',
|
||||
'api_url': 'http://zzz', 'username': 'frank',
|
||||
'password': 'xxx',
|
||||
'weight_offset': '0.0', 'weight_scale': '1.0'}}
|
||||
@ -327,7 +327,7 @@ class ShellTest(utils.TestCase):
|
||||
self.run_command('zone-add child_zone http://zzz')
|
||||
self.assert_called(
|
||||
'POST', '/zones',
|
||||
{'zone': {'zone_name': 'child_zone',
|
||||
{'zone': {'name': 'child_zone',
|
||||
'api_url': 'http://zzz',
|
||||
'username': None,
|
||||
'password': None,
|
||||
|
Loading…
Reference in New Issue
Block a user