Repository: cloudstack
Updated Branches:
  refs/heads/4.4 a2a82f517 -> 9cbd36515


CLOUDSTACK-7887: change int to str into swiftxen


Project: http://git-wip-us.apache.org/repos/asf/cloudstack/repo
Commit: http://git-wip-us.apache.org/repos/asf/cloudstack/commit/9cbd3651
Tree: http://git-wip-us.apache.org/repos/asf/cloudstack/tree/9cbd3651
Diff: http://git-wip-us.apache.org/repos/asf/cloudstack/diff/9cbd3651

Branch: refs/heads/4.4
Commit: 9cbd36515c093f2c850750708d927afff3c317ea
Parents: a2a82f5
Author: Pierre-Luc Dion <[email protected]>
Authored: Wed Nov 12 19:18:37 2014 -0500
Committer: Pierre-Luc Dion <[email protected]>
Committed: Wed Nov 12 19:18:37 2014 -0500

----------------------------------------------------------------------
 scripts/vm/hypervisor/xenserver/swiftxen | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cloudstack/blob/9cbd3651/scripts/vm/hypervisor/xenserver/swiftxen
----------------------------------------------------------------------
diff --git a/scripts/vm/hypervisor/xenserver/swiftxen 
b/scripts/vm/hypervisor/xenserver/swiftxen
index 8342238..f56d5ad 100644
--- a/scripts/vm/hypervisor/xenserver/swiftxen
+++ b/scripts/vm/hypervisor/xenserver/swiftxen
@@ -69,7 +69,7 @@ def upload(args):
             if size > MAX_SEG_SIZE :        
                 segment = 1
         if segment :             
-            cmd = [SWIFT, "-A", url, "-U", account + ":" + username, "-K", 
key, "upload", "-S", MAX_SEG_SIZE, container, lfilename]
+            cmd = [SWIFT, "-A", url, "-U", account + ":" + username, "-K", 
key, "upload", "-S", str(MAX_SEG_SIZE), container, lfilename]
         else :
             cmd = [SWIFT, "-A", url ,"-U", account + ":" + username, "-K", 
key, "upload", container, lfilename]
         util.pread2(cmd)

Reply via email to