fab-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fab-user] Fabric/Python Formatting Question


From: Worker Bee
Subject: [Fab-user] Fabric/Python Formatting Question
Date: Fri, 2 Aug 2013 15:10:28 -0400

Hi Everyone;

I am having a formatting issue.  I am not a seasoned Python programmer so, if this is a dumb question, please forgive me.

I need to store a value as an integer and then call it in a command

repo_id = (3134)
                        print(repo_id)
                        sudo ('run repo-lock --repo-id={repo_id}'.format(repo_id=repo_id))


When I execute, this is the error I get

[build1] out:
3134
[build1] out: can't convert String into Integer
[build1] out:


I would so appreciate any help... pulling my hair out!

Bee

reply via email to

[Prev in Thread] Current Thread [Next in Thread]