File tree 2 files changed +9
-7
lines changed
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 12
12
[
13
13
vg ,
14
14
Facter ::Core ::Execution . exec ( "vgs -o pv_name #{ vg } --noheading --nosuffix" )
15
- . split ( "\n " )
16
- . map { | x | x . strip }
17
- . join ( ',' )
15
+ . split ( "\n " )
16
+ . map ( & : strip)
17
+ . join ( ',' ) ,
18
18
]
19
19
end
20
20
end
Original file line number Diff line number Diff line change 36
36
Facter ::Core ::Execution . expects ( 'which' ) . with ( 'lvs' ) . returns ( '/sbin/lvs' )
37
37
end
38
38
39
+ # rubocop:disable RSpec/ExampleLength
39
40
it 'is able to resolve VGs' do
40
41
lvs_output = <<-OUTPUT
41
42
E7qan8-4NGf-jq2P-l11v-6fFe-MPHK-T6IGzl root centos/root /dev/centos/root /dev/mapper/centos-root -wi-ao---- linear public active 18.46g writeable centos
56
57
'active' => 'active' ,
57
58
'size' => '800.00m' ,
58
59
'permissions' => 'writeable' ,
59
- 'vg_name' => 'tasks' ,
60
+ 'vg_name' => 'tasks'
60
61
} ,
61
62
'lame_tasks' => {
62
63
'uuid' => 'gmNS3G-cAhA-vRj0-2Uf0-21yO-QVdy-LNXfBv' ,
69
70
'active' => 'active' ,
70
71
'size' => '400.00m' ,
71
72
'permissions' => 'writeable' ,
72
- 'vg_name' => 'tasks' ,
73
+ 'vg_name' => 'tasks'
73
74
} ,
74
75
'root' => {
75
76
'uuid' => 'E7qan8-4NGf-jq2P-l11v-6fFe-MPHK-T6IGzl' ,
82
83
'active' => 'active' ,
83
84
'size' => '18.46g' ,
84
85
'permissions' => 'writeable' ,
85
- 'vg_name' => 'centos' ,
86
+ 'vg_name' => 'centos'
86
87
} ,
87
88
'swap' => {
88
89
'uuid' => 'buUXDX-GDUh-rN2t-y80n-vtCt-xhhu-XSZ5kA' ,
95
96
'active' => 'active' ,
96
97
'size' => '1.00g' ,
97
98
'permissions' => 'writeable' ,
98
- 'vg_name' => 'centos' ,
99
+ 'vg_name' => 'centos'
99
100
} )
100
101
end
102
+ # rubocop:enable RSpec/ExampleLength
101
103
end
102
104
end
103
105
end
You can’t perform that action at this time.
0 commit comments