generate_descriptor_pkg.sh: fix bug in validation to use the right file
[osm/devops.git] / descriptor-packages / tools / generate_descriptor_pkg.sh
index 704f77f..e14d412 100755 (executable)
@@ -792,7 +792,7 @@ if [ $CREATE == false ]; then
     cd $BASE_DIR
     # Mrityunjay Yadav: Validate descriptor
     GEN_BASEDIR=$(dirname "$0")
-    python $GEN_BASEDIR/validate_descriptor.py $DEST_DIR/$PKG/$descriptor
+    python $GEN_BASEDIR/validate_descriptor.py $BASE_DIR/$PKG/$descriptor
     if [ $? -ne 0 ]; then
         rc=$?
         echo "ERROR: validating descriptor for $PKG ($rc)" >&2