|
77 | 77 | __version__ = '1.7.0-dev' |
78 | 78 |
|
79 | 79 | # what version of the API is this client compatible with? |
80 | | -__api_version__ = '1.3' |
| 80 | +__api_version__ = '1.4' |
81 | 81 |
|
82 | 82 |
|
83 | 83 | locale.setlocale(locale.LC_ALL, '') |
@@ -396,7 +396,7 @@ def check_connection(self, controller, ssl_verify): |
396 | 396 |
|
397 | 397 | if response.status_code != 401: |
398 | 398 | raise EnvironmentError(error_message) |
399 | | - self.check_api_version(response.headers.get('X_DEIS_API_VERSION')) |
| 399 | + self.check_api_version(response.headers.get('DEIS_API_VERSION')) |
400 | 400 |
|
401 | 401 | def check_api_version(self, server_api_version): |
402 | 402 | """ |
@@ -997,7 +997,7 @@ def builds_create(self, args): |
997 | 997 | progress.cancel() |
998 | 998 | progress.join() |
999 | 999 | if response.status_code == requests.codes.created: |
1000 | | - version = response.headers['x-deis-release'] |
| 1000 | + version = response.headers['Deis-Release'] |
1001 | 1001 | self._logger.info("done, v{}".format(version)) |
1002 | 1002 | else: |
1003 | 1003 | raise ResponseError(response) |
@@ -1242,7 +1242,7 @@ def _config_set(self, app, values): |
1242 | 1242 | progress.cancel() |
1243 | 1243 | progress.join() |
1244 | 1244 | if response.status_code == requests.codes.created: |
1245 | | - version = response.headers['x-deis-release'] |
| 1245 | + version = response.headers['Deis-Release'] |
1246 | 1246 | self._logger.info("done, v{}\n".format(version)) |
1247 | 1247 | config = response.json() |
1248 | 1248 | values = config['values'] |
@@ -1288,7 +1288,7 @@ def config_unset(self, args): |
1288 | 1288 | progress.cancel() |
1289 | 1289 | progress.join() |
1290 | 1290 | if response.status_code == requests.codes.created: |
1291 | | - version = response.headers['x-deis-release'] |
| 1291 | + version = response.headers['Deis-Release'] |
1292 | 1292 | self._logger.info("done, v{}\n".format(version)) |
1293 | 1293 | config = response.json() |
1294 | 1294 | values = config['values'] |
@@ -1636,7 +1636,7 @@ def limits_set(self, args): |
1636 | 1636 | progress.cancel() |
1637 | 1637 | progress.join() |
1638 | 1638 | if response.status_code == requests.codes.created: |
1639 | | - version = response.headers['x-deis-release'] |
| 1639 | + version = response.headers['Deis-Release'] |
1640 | 1640 | self._logger.info("done, v{}\n".format(version)) |
1641 | 1641 |
|
1642 | 1642 | self._print_limits(app, response.json()) |
@@ -1682,7 +1682,7 @@ def limits_unset(self, args): |
1682 | 1682 | progress.cancel() |
1683 | 1683 | progress.join() |
1684 | 1684 | if response.status_code == requests.codes.created: |
1685 | | - version = response.headers['x-deis-release'] |
| 1685 | + version = response.headers['Deis-Release'] |
1686 | 1686 | self._logger.info("done, v{}\n".format(version)) |
1687 | 1687 | self._print_limits(app, response.json()) |
1688 | 1688 | else: |
@@ -1907,7 +1907,7 @@ def tags_set(self, args): |
1907 | 1907 | progress.cancel() |
1908 | 1908 | progress.join() |
1909 | 1909 | if response.status_code == requests.codes.created: |
1910 | | - version = response.headers['x-deis-release'] |
| 1910 | + version = response.headers['Deis-Release'] |
1911 | 1911 | self._logger.info("done, v{}\n".format(version)) |
1912 | 1912 |
|
1913 | 1913 | self._print_tags(app, response.json()) |
@@ -1945,7 +1945,7 @@ def tags_unset(self, args): |
1945 | 1945 | progress.cancel() |
1946 | 1946 | progress.join() |
1947 | 1947 | if response.status_code == requests.codes.created: |
1948 | | - version = response.headers['x-deis-release'] |
| 1948 | + version = response.headers['Deis-Release'] |
1949 | 1949 | self._logger.info("done, v{}\n".format(version)) |
1950 | 1950 | self._print_tags(app, response.json()) |
1951 | 1951 | else: |
|
0 commit comments