mirror of
https://github.com/fog/fog.git
synced 2022-11-09 13:51:43 -05:00
[compute|aws] Don't warn in mock describe_snapshots if RestorableBy is 'self'.
This commit is contained in:
parent
a90007b7d4
commit
cd78aca926
1 changed files with 5 additions and 5 deletions
|
@ -68,8 +68,8 @@ module Fog
|
|||
if filters.delete('owner-alias')
|
||||
Formatador.display_line("[yellow][WARN] describe_snapshots with owner-alias is not mocked[/] [light_black](#{caller.first})[/]")
|
||||
end
|
||||
if filters.delete('RestorableBy')
|
||||
Formatador.display_line("[yellow][WARN] describe_snapshots with RestorableBy is not mocked[/] [light_black](#{caller.first})[/]")
|
||||
if (restorable_by = filters.delete('RestorableBy')) && restorable_by != 'self'
|
||||
Formatador.display_line("[yellow][WARN] describe_snapshots with RestorableBy other than 'self' (wanted #{restorable_by.inspect}) is not mocked[/] [light_black](#{caller.first})[/]")
|
||||
end
|
||||
|
||||
snapshot_set = apply_tag_filters(snapshot_set, filters)
|
||||
|
|
Loading…
Reference in a new issue