softlayer / softlayer-object-storage-backup

Other
11 stars 3 forks source link

Problems #5

Closed manelpb closed 12 years ago

manelpb commented 12 years ago

When i run i getting

File "slbackup.py", line 60 use_network = 'private' if DC_USE_PRIVATE else 'public' ^ SyntaxError: invalid syntax

CrackerJackMack commented 12 years ago

The backup script requires python2.6 or greater. If you are running on Centos5 you can install python2.6 from EPEL without breaking yum. The package is called python26. This is a slotted install and will require a minor modification to the script. Just change the

#!/usr/bin/python

to

#!/usr/bin/python2.6

Let me know if that fixes it for you!

manelpb commented 12 years ago

It works, thanks a lot!