What is the error message now?

how about this:

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


________________________________
 From: "Stroehmann, James" <james.stroehm...@proquest.com>
To: Worker Bee <beeworke...@gmail.com> 
Cc: "fab-user@nongnu.org" <fab-user@nongnu.org> 
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" <beeworke...@gmail.com> 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
> Fab-user@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/fab-user


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

Reply via email to