fix bug thag model name typo
Change-Id: I705c98830940f1f79b17bb2cae8120c4ecef593a
This commit is contained in:
parent
c4674360ef
commit
fc8d9b9661
@ -682,15 +682,11 @@ def _update_clusterhost(session, updater, clusterhost, **kwargs):
|
|||||||
session, clusterhost, **in_kwargs
|
session, clusterhost, **in_kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
|
is_cluster_editable(session, clusterhost.cluster, updater)
|
||||||
return update_internal(
|
return update_internal(
|
||||||
clusterhost, **kwargs
|
clusterhost, **kwargs
|
||||||
)
|
)
|
||||||
|
|
||||||
is_cluster_editable(session, clusterhost.cluster, updater)
|
|
||||||
return utils.update_db_object(
|
|
||||||
session, clusterhost, **kwargs
|
|
||||||
)
|
|
||||||
|
|
||||||
|
|
||||||
@utils.supported_filters(
|
@utils.supported_filters(
|
||||||
optional_support_keys=UPDATED_CLUSTERHOST_FIELDS
|
optional_support_keys=UPDATED_CLUSTERHOST_FIELDS
|
||||||
@ -735,7 +731,7 @@ def patch_cluster_host(
|
|||||||
):
|
):
|
||||||
"""Update cluster host."""
|
"""Update cluster host."""
|
||||||
clusterhost = utils.get_db_object(
|
clusterhost = utils.get_db_object(
|
||||||
session, models.Cluster, cluster_id=cluster_id, host_id=host_id
|
session, models.ClusterHost, cluster_id=cluster_id, host_id=host_id
|
||||||
)
|
)
|
||||||
return _update_clusterhost(session, updater, clusterhost, **kwargs)
|
return _update_clusterhost(session, updater, clusterhost, **kwargs)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user