Fix NetworkExplorer creation

After I4dbf40c65042e9a354f3bfadfcd63a63e6e3e418 NetworkExplorer
require CloudRegion subclass in owners chain

Change-Id: I238e3bd6792312e780bd565c9cd9cf2735f5e25c
Closes-bug: #1620271
This commit is contained in:
Snihyr Kostyantyn 2016-08-31 13:03:39 +03:00 committed by Konstantin Snihyr
parent 5f734b16ca
commit f4cf8b36a6
2 changed files with 3 additions and 4 deletions

View File

@ -38,8 +38,7 @@ Properties:
Workflow: Workflow:
initialize: initialize:
Body: Body:
- $environment: $.find(std:Environment).require() - $._netExplorer: new(sys:NetworkExplorer, $this.getRegion())
- $._netExplorer: new(sys:NetworkExplorer, $environment)
- $._networks: null - $._networks: null
- $._subnetworks: null - $._subnetworks: null
- $._ports: null - $._ports: null
@ -99,7 +98,7 @@ Workflow:
_getNetworks: _getNetworks:
Body: Body:
- If: $._networks = null - If: not $._networks
Then: Then:
$._networks: $._netExplorer.listNetworks() $._networks: $._netExplorer.listNetworks()
- Return: $._networks - Return: $._networks

View File

@ -24,7 +24,7 @@ Methods:
Body: Body:
- $._environment: $.find(std:Environment) - $._environment: $.find(std:Environment)
- $._region: $.getRegion() - $._region: $.getRegion()
- $._netExplorer: new(sys:NetworkExplorer, $this) - $._netExplorer: new(sys:NetworkExplorer, $this._region)
- $._securityGroupsEnabled: $._netExplorer.listNeutronExtensions().alias.contains('security-group') - $._securityGroupsEnabled: $._netExplorer.listNeutronExtensions().alias.contains('security-group')
joinInstanceToNetwork: joinInstanceToNetwork: