Merge lp:~arthur-she/lava-dispatcher/fix-for-bug-1175818 into lp:lava-dispatcher

Proposed by Arthur She
Status: Merged
Approved by: Senthil Kumaran S
Approved revision: 597
Merged at revision: 596
Proposed branch: lp:~arthur-she/lava-dispatcher/fix-for-bug-1175818
Merge into: lp:lava-dispatcher
Diff against target: 22 lines (+6/-2)
1 file modified
lava_dispatcher/device/master.py (+6/-2)
To merge this branch: bzr merge lp:~arthur-she/lava-dispatcher/fix-for-bug-1175818
Reviewer Review Type Date Requested Status
Senthil Kumaran S Approve
Antonio Terceiro Needs Fixing
Review via email: mp+162946@code.launchpad.net

Description of the change

Update variable MASTER_PS1 & MASTER_PS1_PATTERN according to config file

To post a comment you must log in.
Revision history for this message
Antonio Terceiro (terceiro) wrote :

Hi Arthur,

Thanks for working on this.

> === modified file 'lava_dispatcher/device/master.py'
> --- lava_dispatcher/device/master.py 2013-05-02 21:43:14 +0000
> +++ lava_dispatcher/device/master.py 2013-05-08 09:30:42 +0000
> @@ -61,12 +61,16 @@
>
> class MasterImageTarget(Target):
>
> - MASTER_PS1 = 'root@master [rc=$(echo \$?)]# '
> - MASTER_PS1_PATTERN = 'root@master \[rc=(\d+)\]# '
> + MASTER_PS1 = ' [rc=$(echo \$?)]# '
> + MASTER_PS1_PATTERN = ' \[rc=(\d+)\]# '
>
> def __init__(self, context, config):
> super(MasterImageTarget, self).__init__(context, config)
>
> + # Update variable according to config file
> + self.MASTER_PS1 = self.config.master_str + self.MASTER_PS1
> + self.MASTER_PS1_PATTERN = self.config.master_str + self.MASTER_PS1_PATTERN
> +

The indentation is broken here, mixing tabs and spaces. Please adjust
your editor to not use tabs, and make sure the new code aligns
horizontally with the existing code.

> Target.android_deployment_data['boot_cmds'] = 'boot_cmds_android'
> Target.ubuntu_deployment_data['boot_cmds'] = 'boot_cmds'
> Target.oe_deployment_data['boot_cmds'] = 'boot_cmds_oe'

 review needs-fixing

--
Antonio Terceiro
Software Engineer - Linaro
http://www.linaro.org

review: Needs Fixing
597. By Arthur She

fix for bug #1175818. fix indentation, use spaces instead of tabs.

Revision history for this message
Arthur She (arthur-she) wrote :

Hi Antonio,
Thanks, I'll modify it.

Revision history for this message
Senthil Kumaran S (stylesen) wrote :

Looks good +1 to merge.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lava_dispatcher/device/master.py'
2--- lava_dispatcher/device/master.py 2013-05-02 21:43:14 +0000
3+++ lava_dispatcher/device/master.py 2013-05-09 03:03:26 +0000
4@@ -61,12 +61,16 @@
5
6 class MasterImageTarget(Target):
7
8- MASTER_PS1 = 'root@master [rc=$(echo \$?)]# '
9- MASTER_PS1_PATTERN = 'root@master \[rc=(\d+)\]# '
10+ MASTER_PS1 = ' [rc=$(echo \$?)]# '
11+ MASTER_PS1_PATTERN = ' \[rc=(\d+)\]# '
12
13 def __init__(self, context, config):
14 super(MasterImageTarget, self).__init__(context, config)
15
16+ # Update variable according to config file
17+ self.MASTER_PS1 = self.config.master_str + self.MASTER_PS1
18+ self.MASTER_PS1_PATTERN = self.config.master_str + self.MASTER_PS1_PATTERN
19+
20 Target.android_deployment_data['boot_cmds'] = 'boot_cmds_android'
21 Target.ubuntu_deployment_data['boot_cmds'] = 'boot_cmds'
22 Target.oe_deployment_data['boot_cmds'] = 'boot_cmds_oe'

Subscribers

People subscribed via source and target branches