Revision 75ae8a08 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=''):
334
            floating_ip_address='', port_id='', fixed_ip_address='',
335
            args=None):
335 336
        """Cyclades do not use port_id and fixed_ip_address"""
336 337
        floatingip = dict(floating_network_id=floating_network_id)
337 338
        if floating_ip_address:
......
340 341
            floatingip['port_id'] = port_id
341 342
        if fixed_ip_address:
342 343
            floatingip['fixed_ip_address'] = fixed_ip_address
344
        if args is not None:
345
            floatingip.update(args)
343 346
        r = self.floatingips_post(
344 347
            json_data=dict(floatingip=floatingip), success=200)
345 348
        return r.json['floatingip']

Also available in: Unified diff