Adding -o option to unzip odl steps in the deploy.py script, 15/37015/2
authorMohamed El-Serngawy <melserngawy@inocybe.com>
Fri, 1 Apr 2016 16:15:19 +0000 (12:15 -0400)
committerJamo Luhrsen <jluhrsen@redhat.com>
Sat, 2 Apr 2016 00:24:11 +0000 (00:24 +0000)
without -o option the script keep waiting for interrupt and
didn't proceed.

Change-Id: I9a45cb1777148fa2b6e963d6697fa76aff836a07
Signed-off-by: Mohamed El-Serngawy <melserngawy@inocybe.com>
tools/clustering/cluster-deployer/deploy.py

index a885da5c74a3f6256e164af8a50a5a608502001c..6de9feabe00314038ef27471344d8553de379a93 100755 (executable)
@@ -204,7 +204,7 @@ class Deployer:
         # Copy the distribution to the host and unzip it
         odl_file_path = self.dir_name + "/odl.zip"
         self.remote.copy_file(self.distribution, odl_file_path)
         # Copy the distribution to the host and unzip it
         odl_file_path = self.dir_name + "/odl.zip"
         self.remote.copy_file(self.distribution, odl_file_path)
-        self.remote.exec_cmd("unzip " + odl_file_path + " -d " +
+        self.remote.exec_cmd("unzip -o " + odl_file_path + " -d " +
                              self.dir_name + "/")
 
         # Rename the distribution directory to odl
                              self.dir_name + "/")
 
         # Rename the distribution directory to odl