app/controllers/api/v1/node/containers_controller.rb
# POST /mark_provisioned
# Mark container as provisioned
POST /mark_provisioned
Mark container as provisioned
POST / mark_provisioned Mark container as provisioned
def mark_provisioned
    @container = current_node.containers.exists.find_by(
      hostname: params[:hostname],
      status: 'SCHEDULED'
    )
    @container.update_status('PROVISIONED')
    render json: ::Api::V1::Node::ContainerSerializer.new(@container).to_h
  end
def mark_provisioned @container = current_node . containers . exists . find_by ( hostname : params [ :hostname ] , status : 'SCHEDULED' ) @container . update_status ( 'PROVISIONED' ) render json : :: Api :: V1 :: Node :: ContainerSerializer . new ( @container ) . to_h end
POST /mark_provisioned
Mark container as provisioned
POST / mark_provisioned Mark container as provisioned