Fix clis related to FloatingIP's ptr records
Change-Id: Ie39f1e86716a096402aafe814fcde821e66dbc5b Closes-Bug: #1600781
This commit is contained in:
parent
a5035080c1
commit
a9ca09e540
@ -37,6 +37,13 @@ class ListFloatingIPCommand(command.Lister):
|
||||
|
||||
columns = ['id', 'ptrdname', 'description', 'ttl']
|
||||
|
||||
def get_parser(self, prog_name):
|
||||
parser = super(ListFloatingIPCommand, self).get_parser(prog_name)
|
||||
|
||||
common.add_all_common_options(parser)
|
||||
|
||||
return parser
|
||||
|
||||
def take_action(self, parsed_args):
|
||||
client = self.app.client_manager.dns
|
||||
common.set_all_common_headers(client, parsed_args)
|
||||
|
@ -31,8 +31,8 @@ class FloatingIPController(V2Controller):
|
||||
url = '/reverse/floatingips/%s' % floatingip_id
|
||||
return self._patch(url, data=data)
|
||||
|
||||
def list(self):
|
||||
url = '/reverse/floatingips'
|
||||
def list(self, criterion=None):
|
||||
url = self.build_url('/reverse/floatingips', criterion)
|
||||
|
||||
return self._get(url, response_key='floatingips')
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user