Skip to content

Commit

Permalink
Fix typo and remove non-retryable error code
Browse files Browse the repository at this point in the history
  • Loading branch information
Ajay Kannan committed Dec 1, 2015
1 parent e7b3539 commit ebf3aa3
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
public class DefaultResourceManagerRpc implements ResourceManagerRpc {

// see https://cloud.google.com/resource-manager/v1/errors/core_errors
private static final Set<Integer> RETRYABLE_CODES = ImmutableSet.of(503, 500, 429, 417);
private static final Set<Integer> RETRYABLE_CODES = ImmutableSet.of(503, 500, 429);

private final Cloudresourcemanager resourceManager;

Expand Down Expand Up @@ -90,7 +90,7 @@ public Tuple<String, Iterable<Project>> list(Map<Option, ?> options)
try {
ListProjectsResponse response = resourceManager.projects()
.list()
.setFilter(FIELDS.getString(options))
.setFields(FIELDS.getString(options))
.setFilter(FILTER.getString(options))
.setPageSize(PAGE_SIZE.getInt(options))
.setPageToken(PAGE_TOKEN.getString(options))
Expand Down

0 comments on commit ebf3aa3

Please sign in to comment.