summaryrefslogtreecommitdiff
path: root/apexer/apex_manifest.py
diff options
context:
space:
mode:
authorAbhijeet Kaur <abkaur@google.com>2019-01-04 09:02:31 +0000
committerAbhijeet Kaur <abkaur@google.com>2019-01-04 09:04:31 +0000
commita971613e422edb34e6c8fabeaaccd98d52e34b02 (patch)
tree6df494a433c0b23c835af369b0554aff4e821828 /apexer/apex_manifest.py
parent997fcbfafdc8a10f7bcf0485b359ad5a6381a4d2 (diff)
Rename proto message name as it will be used as main object type.
Moving towards protobuf validation in apexer/apexd. Since this will be the main class that will be used for apex manifest, renaming for better reference. Test: ./apexer/runtests.sh Change-Id: Iaf9bfb1747a60f5c22869d8a56a7661bf10866e9
Diffstat (limited to 'apexer/apex_manifest.py')
-rw-r--r--apexer/apex_manifest.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/apexer/apex_manifest.py b/apexer/apex_manifest.py
index eb9b664..d75d95b 100644
--- a/apexer/apex_manifest.py
+++ b/apexer/apex_manifest.py
@@ -15,7 +15,7 @@
# limitations under the License.
import json
-import manifest_schema_pb2
+import apex_manifest_pb2
from google.protobuf.json_format import Parse
from google.protobuf.json_format import ParseError
@@ -27,7 +27,7 @@ class ApexManifestError(Exception):
def ValidateApexManifest(manifest_raw):
try:
manifest_json = json.loads(manifest_raw)
- manifest_pb = Parse(json.dumps(manifest_json), manifest_schema_pb2.ManifestSchema())
+ manifest_pb = Parse(json.dumps(manifest_json), apex_manifest_pb2.ApexManifest())
except (ParseError, ValueError) as err:
raise ApexManifestError(err)
# Checking required fields