Trival fix link for types and sample
Change-Id: Icc132f043aa9d42bdc741a23963f2dcbab867903
This commit is contained in:
parent
06663fe143
commit
afc74d0207
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
]
|
||||
|
|
Loading…
Reference in New Issue