fab-user
[Top][All Lists]
Advanced

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

Re: [Fab-user] Fabric/Python Formatting Question


From: Dennis Backhaus
Subject: Re: [Fab-user] Fabric/Python Formatting Question
Date: Fri, 2 Aug 2013 22:14:44 +0100 (BST)

What is the error message now?

how about this:

local('sudo run repo-lock --repo-id=%s' %str(repo_id))


From: "Stroehmann, James" <address@hidden>
To: Worker Bee <address@hidden>
Cc: "address@hidden" <address@hidden>
Sent: Friday, August 2, 2013 5:11 PM
Subject: Re: [Fab-user] Fabric/Python Formatting Question

Did you try taking the parenthesis away from around the 3134?

------

On Aug 2, 2013, at 3:11 PM, "Worker Bee" <address@hidden> wrote:

> 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
> _______________________________________________
> Fab-user mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/fab-user


_______________________________________________
Fab-user mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/fab-user



reply via email to

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