diff options
author | Lianhao Lu <lianhao.lu@intel.com> | 2017-08-01 10:49:31 +0800 |
---|---|---|
committer | Lianhao Lu <lianhao.lu@intel.com> | 2017-08-01 10:52:19 +0800 |
commit | 9b2c52b958acf3e104259f79db4df8de61910630 (patch) | |
tree | 2548c6642b30737e8da83435f3f1f1c100f811b8 /cli | |
parent | 84febebd8e2c8084dc1034f0c780414b91057e19 (diff) |
Resolve the upstream aria dependency issues
The upstream arai has been accepted into apache foundation and the
pacakge name and interface name have been changed. Here we adopt these
upstream changes accordingly.
Also we drop conflicting package dependency requirements which are
already included in the upstream aria.
Change-Id: I9befbe695cc6edc93029f15bbcee3bfe37099d40
Issue-ID: VNFSDK-61
Signed-off-by: Lianhao Lu <lianhao.lu@intel.com>
Diffstat (limited to 'cli')
-rw-r--r-- | cli/__main__.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/cli/__main__.py b/cli/__main__.py index f4e267b..2fe4d68 100644 --- a/cli/__main__.py +++ b/cli/__main__.py @@ -22,14 +22,14 @@ from aria import install_aria_extensions import os
import shutil
import tempfile
-from aria.loading import LiteralLocation
-from aria.consumption import (
+from aria.parser.loading import LiteralLocation
+from aria.parser.consumption import (
ConsumptionContext,
ConsumerChain,
Read,
Validate,
- Model,
- Instance
+ ServiceTemplate,
+ ServiceInstance
)
def csar_create_func(namespace):
@@ -52,7 +52,7 @@ def csar_validate_func(namespace): context.loading.prefixes += [os.path.join(reader.destination, 'definitions')]
context.presentation.location = LiteralLocation(reader.entry_definitions_yaml)
print reader.entry_definitions_yaml
- chain = ConsumerChain(context, (Read, Validate, Model, Instance))
+ chain = ConsumerChain(context, (Read, Validate, ServiceTemplate, ServiceInstance))
chain.consume()
if context.validation.dump_issues():
raise RuntimeError('Validation failed')
|