1
0
Fork 0
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:
Dan Peterson 2011-08-29 16:46:09 -03:00
parent a90007b7d4
commit cd78aca926

View file

@ -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)