File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -93,7 +93,9 @@ def _get_attrs(client_manager, parsed_args):
9393 parsed_args .project ,
9494 parsed_args .project_domain ,
9595 ).id
96+ # TODO(dtroyer): Remove tenant_id when we clean up the SDK refactor
9697 attrs ['tenant_id' ] = project_id
98+ attrs ['project_id' ] = project_id
9799
98100 # "network set" command doesn't support setting availability zone hints.
99101 if 'availability_zone_hints' in parsed_args and \
Original file line number Diff line number Diff line change @@ -185,7 +185,9 @@ def test_create_all_options(self):
185185 'name' : self ._network .name ,
186186 'shared' : True ,
187187 'description' : self ._network .description ,
188+ # TODO(dtroyer): Remove tenant_id when we clean up the SDK refactor
188189 'tenant_id' : self .project .id ,
190+ 'project_id' : self .project .id ,
189191 'is_default' : True ,
190192 'router:external' : True ,
191193 'provider:network_type' : 'vlan' ,
@@ -319,7 +321,9 @@ def test_create_with_project_identityv2(self):
319321 self .network .create_network .assert_called_once_with (** {
320322 'admin_state_up' : True ,
321323 'name' : self ._network .name ,
324+ # TODO(dtroyer): Remove tenant_id when we clean up the SDK refactor
322325 'tenant_id' : self .project .id ,
326+ 'project_id' : self .project .id ,
323327 })
324328 self .assertEqual (self .columns , columns )
325329 self .assertEqual (self .data , data )
You can’t perform that action at this time.
0 commit comments