mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[aws|compute] tweaks for tags lookups
This commit is contained in:
parent
e75690f781
commit
40ab6052ea
4 changed files with 12 additions and 12 deletions
|
@ -36,13 +36,13 @@ module Fog
|
|||
|
||||
return true
|
||||
end
|
||||
|
||||
|
||||
def tags
|
||||
requires :id
|
||||
|
||||
connection.tags(:filters => {'resource-id' => @id})
|
||||
connection.tags.all('resource-id' => identity)
|
||||
end
|
||||
|
||||
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
@ -188,11 +188,10 @@ module Fog
|
|||
connection.stop_instances(@id)
|
||||
true
|
||||
end
|
||||
|
||||
|
||||
def tags
|
||||
requires :id
|
||||
|
||||
connection.tags(:filters => {'resource-id' => @id})
|
||||
connection.tags.all('resource-id' => identity)
|
||||
end
|
||||
|
||||
def username
|
||||
|
@ -201,7 +200,6 @@ module Fog
|
|||
|
||||
def volumes
|
||||
requires :id
|
||||
|
||||
connection.volumes(:server => self)
|
||||
end
|
||||
|
||||
|
|
|
@ -39,9 +39,13 @@ module Fog
|
|||
true
|
||||
end
|
||||
|
||||
def tags
|
||||
requires :id
|
||||
connection.tags.all('resource-id' => identity)
|
||||
end
|
||||
|
||||
def volume
|
||||
requires :id
|
||||
|
||||
connection.describe_volumes(@volume_id)
|
||||
end
|
||||
|
||||
|
|
|
@ -59,14 +59,12 @@ module Fog
|
|||
|
||||
def snapshots
|
||||
requires :id
|
||||
|
||||
connection.snapshots(:volume => self)
|
||||
end
|
||||
|
||||
|
||||
def tags
|
||||
requires :id
|
||||
|
||||
connection.tags(:filters => {'resource-id' => @id})
|
||||
connection.tags.all('resource-id' => identity)
|
||||
end
|
||||
|
||||
private
|
||||
|
|
Loading…
Add table
Reference in a new issue