Skip to content

Commit

Permalink
B #3308: VM custom attributes for some hypervisors are not in the body
Browse files Browse the repository at this point in the history
Signed-off-by: Jorge Lobo <jlobo@opennebula.systems>
  • Loading branch information
Jorge Lobo committed May 10, 2019
1 parent 87ffb06 commit 19d9de0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions src/oca/ruby/opennebula/pool.rb
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ def get_hash(size=nil, extended=nil)
allow_paginated = PAGINATED_POOLS.include?(@pool_name)

if OpenNebula.pool_page_size && allow_paginated &&
( ( size && size >= 2 ) || !size )
( ( size && size >= 2 ) || !size ) && !extended

size = OpenNebula.pool_page_size if !size
hash = info_paginated(size)
Expand All @@ -197,7 +197,6 @@ def get_hash(size=nil, extended=nil)
else
if extended
rc = info_search(:extended => true)
File.open('/tmp/test', 'w') { |file| file.write(rc) }
else
rc = info
end
Expand Down
3 changes: 1 addition & 2 deletions src/sunstone/models/SunstoneServer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ def get_pool(kind,user_flag, client=nil)
end

if kind == "vm"
rc = pool.get_hash(nil,true);
File.open("/tmp/test", 'w') { |file| file.write(rc) }
rc = pool.get_hash(nil,$conf[:get_extended_vm_info];
else
rc = pool.get_hash
end
Expand Down

1 comment on commit 19d9de0

@GitCop
Copy link

@GitCop GitCop commented on 19d9de0 May 10, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There were the following issues with your Pull Request

  • Subject must be equal or less than 50

Guidelines are available at https://github.com/OpenNebula/one/blob/master/share/doc/dev/COMMIT_MESSAGES.md


This message was auto-generated by https://gitcop.com

Please sign in to comment.