[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Fab-user] Fabric/Python Formatting Question
From: |
Stroehmann, James |
Subject: |
Re: [Fab-user] Fabric/Python Formatting Question |
Date: |
Fri, 2 Aug 2013 21:11:25 +0000 |
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