Revision f1e45161 kamaki/clients/network/__init__.py

b/kamaki/clients/network/__init__.py
331 331

  
332 332
    def create_floatingip(
333 333
            self, floating_network_id,
334
            floating_ip_address='', port_id='', fixed_ip_address='',
335
            args=None):
336
        """Cyclades do not use port_id and fixed_ip_address"""
334
            floating_ip_address='', port_id='', fixed_ip_address=''):
337 335
        floatingip = dict(floating_network_id=floating_network_id)
338 336
        if floating_ip_address:
339 337
            floatingip['floating_ip_address'] = floating_ip_address
......
341 339
            floatingip['port_id'] = port_id
342 340
        if fixed_ip_address:
343 341
            floatingip['fixed_ip_address'] = fixed_ip_address
344
        if args is not None:
345
            floatingip.update(args)
346 342
        r = self.floatingips_post(
347 343
            json_data=dict(floatingip=floatingip), success=200)
348 344
        return r.json['floatingip']

Also available in: Unified diff