Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

F #1414: fix bug related with older context packages #3287

Merged
merged 1 commit into from
Apr 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 8 additions & 2 deletions src/onegate/onegate-server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -325,9 +325,15 @@ def check_vm_in_service(requested_vm_id, service_id, client)
# @param params [Object] HTTP request parameters
def update(object, params)
attr = params[:data]
type = params[:type].to_i
type = params[:type]

type = 1 if type.nil?
if type.nil?
type = 1
else
type = type.to_i
end

attr = request.body.read if attr.nil?

if type == 1
error = "cannot be modified"
Expand Down