Trival fix link for types and sample

Change-Id: Icc132f043aa9d42bdc741a23963f2dcbab867903
This commit is contained in:
Kevin_Zheng 2016-09-28 09:24:31 +08:00
parent 06663fe143
commit afc74d0207
2 changed files with 3 additions and 3 deletions

View File

@ -52,7 +52,7 @@ class Link(base.APIBase):
@classmethod
def sample(cls):
sample = cls(href="http://localhost:6688/chassis/"
sample = cls(href="http://localhost:6688/types/"
"eaaca217-e7d8-47b4-bb41-3f99f20eed89",
rel="bookmark")
return sample

View File

@ -68,10 +68,10 @@ class InstanceType(base.APIBase):
instance_type = InstanceType(**rpc_instance_type.as_dict())
url = pecan.request.public_url
instance_type.links = [link.Link.make_link('self', url,
'instance_type',
'types',
instance_type.uuid),
link.Link.make_link('bookmark', url,
'instance_type',
'types',
instance_type.uuid,
bookmark=True)
]