示例#1
0
 def delete_cluster_host(
     cluster_id, host_id, user, delete_underlying_host=False
 ):
     if delete_underlying_host:
         host_db.del_host(
             host_id, True, True, user=user
         )
     cluster_db.del_cluster_host(
         cluster_id, host_id, True, True, user=user
     )
示例#2
0
    def delete_cluster_host(cluster_id,
                            host_id,
                            user,
                            delete_underlying_host=False):
        """Delete clusterhost.

        If delete_underlying_host set, also delete underlying host.
        """
        if delete_underlying_host:
            host_db.del_host(host_id, True, True, user=user)
        cluster_db.del_cluster_host(cluster_id, host_id, True, True, user=user)
示例#3
0
    def delete_cluster_host(
        cluster_id, host_id, user, delete_underlying_host=False
    ):
        """Delete clusterhost.

        If delete_underlying_host set, also delete underlying host.
        """
        if delete_underlying_host:
            host_db.del_host(
                host_id, True, True, user=user
            )
        cluster_db.del_cluster_host(
            cluster_id, host_id, True, True, user=user
        )