mirror of
https://github.com/OpenNebula/one.git
synced 2025-03-26 06:50:09 +03:00
Add one market and onedatastore user and group columns
This commit is contained in:
parent
804cec6628
commit
9af73f66f8
@ -3,6 +3,16 @@
|
||||
:desc: ONE identifier for the Datastore
|
||||
:size: 4
|
||||
|
||||
:USER:
|
||||
:desc: Username of the Datastore owner
|
||||
:size: 10
|
||||
:left: true
|
||||
|
||||
:GROUP:
|
||||
:desc: Group of the Datastore
|
||||
:size: 10
|
||||
:left: true
|
||||
|
||||
:NAME:
|
||||
:desc: Name of the Datastore
|
||||
:size: 13
|
||||
|
@ -4,12 +4,12 @@
|
||||
:size: 4
|
||||
|
||||
:USER:
|
||||
:desc: Username of the Virtual Machine owner
|
||||
:desc: Username of the Image owner
|
||||
:size: 10
|
||||
:left: true
|
||||
|
||||
:GROUP:
|
||||
:desc: Group of the Virtual Machine
|
||||
:desc: Group of the Image
|
||||
:size: 10
|
||||
:left: true
|
||||
|
||||
|
@ -3,6 +3,16 @@
|
||||
:desc: ONE identifier for the Marketplace
|
||||
:size: 4
|
||||
|
||||
:USER:
|
||||
:desc: Username of the Marketplace owner
|
||||
:size: 10
|
||||
:left: true
|
||||
|
||||
:GROUP:
|
||||
:desc: Group of the Marketplace
|
||||
:size: 10
|
||||
:left: true
|
||||
|
||||
:NAME:
|
||||
:desc: Name of the Marketplace
|
||||
:size: 20
|
||||
|
@ -44,6 +44,16 @@ class OneDatastoreHelper < OpenNebulaHelper::OneHelper
|
||||
d["ID"]
|
||||
end
|
||||
|
||||
column :USER, "Username of the Datastore owner", :left,
|
||||
:size=>10 do |d|
|
||||
helper.user_name(d, options)
|
||||
end
|
||||
|
||||
column :GROUP, "Group of the Datastore", :left,
|
||||
:size=>10 do |d|
|
||||
helper.group_name(d, options)
|
||||
end
|
||||
|
||||
column :NAME, "Name of the Datastore", :left, :size=>13 do |d|
|
||||
d["NAME"]
|
||||
end
|
||||
@ -95,7 +105,7 @@ class OneDatastoreHelper < OpenNebulaHelper::OneHelper
|
||||
Datastore::SHORT_DATASTORE_STATES[state]
|
||||
end
|
||||
|
||||
default :ID, :NAME, :SIZE, :AVAIL, :CLUSTER, :IMAGES,
|
||||
default :ID, :USER, :GROUP, :NAME, :SIZE, :AVAIL, :CLUSTER, :IMAGES,
|
||||
:TYPE, :DS, :TM, :STAT
|
||||
end
|
||||
|
||||
@ -114,7 +124,6 @@ class OneDatastoreHelper < OpenNebulaHelper::OneHelper
|
||||
end
|
||||
|
||||
def factory_pool(user_flag=-2)
|
||||
#TBD OpenNebula::UserPool.new(@client, user_flag)
|
||||
OpenNebula::DatastorePool.new(@client)
|
||||
end
|
||||
|
||||
|
@ -44,6 +44,16 @@ class OneMarketPlaceHelper < OpenNebulaHelper::OneHelper
|
||||
d["ID"]
|
||||
end
|
||||
|
||||
column :USER, "Username of the Marketplace owner", :left,
|
||||
:size=>10 do |d|
|
||||
helper.user_name(d, options)
|
||||
end
|
||||
|
||||
column :GROUP, "Group of the Marketplace", :left,
|
||||
:size=>10 do |d|
|
||||
helper.group_name(d, options)
|
||||
end
|
||||
|
||||
column :NAME, "Name of the Marketplace", :left, :size=>30 do |d|
|
||||
d["NAME"]
|
||||
end
|
||||
@ -72,7 +82,7 @@ class OneMarketPlaceHelper < OpenNebulaHelper::OneHelper
|
||||
d["MARKET_MAD"]
|
||||
end
|
||||
|
||||
default :ID, :SIZE, :AVAIL, :APPS, :TYPE, :MAD, :NAME
|
||||
default :ID, :USER, :GROUP, :NAME, :SIZE, :AVAIL, :APPS, :TYPE, :MAD, :NAME
|
||||
end
|
||||
|
||||
table
|
||||
|
Loading…
x
Reference in New Issue
Block a user