You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@libcloud.apache.org by an...@apache.org on 2017/04/21 05:43:00 UTC

[13/16] libcloud git commit: FAM-791 max_results and next_token removed from ex_describe_volumes_modifications()

FAM-791 max_results and next_token removed from ex_describe_volumes_modifications()


Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo
Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/da89d297
Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/da89d297
Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/da89d297

Branch: refs/heads/trunk
Commit: da89d297994dfda0127fb0a6cc8060b1471877e2
Parents: 606b5f2
Author: Hennadii Stas <ut...@gmail.com>
Authored: Thu Apr 20 12:44:46 2017 +0300
Committer: Hennadii Stas <ut...@gmail.com>
Committed: Thu Apr 20 13:17:49 2017 +0300

----------------------------------------------------------------------
 libcloud/compute/drivers/ec2.py | 20 +-------------------
 1 file changed, 1 insertion(+), 19 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/libcloud/blob/da89d297/libcloud/compute/drivers/ec2.py
----------------------------------------------------------------------
diff --git a/libcloud/compute/drivers/ec2.py b/libcloud/compute/drivers/ec2.py
index 22d3a64..624773c 100644
--- a/libcloud/compute/drivers/ec2.py
+++ b/libcloud/compute/drivers/ec2.py
@@ -5644,7 +5644,6 @@ class BaseEC2NodeDriver(NodeDriver):
             raise ValueError('Invalid volume type specified: %s' % volume_type)
 
         parameters.update({'Action': 'ModifyVolume', 'VolumeId': volume.id})
-
         response = self.connection.request(self.path,
                                            params=parameters.copy()).object
 
@@ -5652,8 +5651,7 @@ class BaseEC2NodeDriver(NodeDriver):
             fixxpath(xpath='volumeModification', namespace=NAMESPACE))[0])
 
     def ex_describe_volumes_modifications(self, dry_run=False, volume_ids=None,
-                                          filters=None, next_token=None,
-                                          max_results=None):
+                                          filters=None):
         """
         Describes one or more of your volume modifications.
 
@@ -5668,22 +5666,9 @@ class BaseEC2NodeDriver(NodeDriver):
                              information for only certain volumes
         :type       filters: ``dict``
 
-        :param      max_results: The maximum number of items that can be
-                                 returned in a single page
-        :type       max_results: ``int``
-
-        :param      next_token: The nextToken value returned by a previous
-                                paginated request.
-        :type       next_token: ``string``
-
         :return:  List of volume modification status objects
         :rtype:   ``list`` of :class:`VolumeModification
         """
-
-        if next_token:
-            raise NotImplementedError(
-                'volume_modifications next_token is not implemented')
-
         params = {'Action': 'DescribeVolumesModifications'}
 
         if dry_run:
@@ -5695,9 +5680,6 @@ class BaseEC2NodeDriver(NodeDriver):
         if filters:
             params.update(self._build_filters(filters))
 
-        if max_results:
-            params.update({'MaxResults': max_results})
-
         response = self.connection.request(self.path, params=params).object
 
         return self._to_volume_modifications(response)