File tree 2 files changed +2
-2
lines changed
2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 2
2
3
3
def get_python_release ( executable )
4
4
if Facter ::Util ::Resolution . which ( executable ) # rubocop:disable Style/GuardClause
5
- results = Facter ::Util ::Resolution . exec ( "#{ executable } -V 2>&1" ) . match ( %r{^.*(\d +\. \d +)\. \d +\+ ?$} )
5
+ results = Facter ::Util ::Resolution . exec ( "#{ executable } -V 2>&1" ) . match ( %r{^.*(\d +\. \d +)\. \d +\+ ?(?:rc \d +)? $} )
6
6
results [ 1 ] if results
7
7
end
8
8
end
Original file line number Diff line number Diff line change 2
2
3
3
def get_python_version ( executable )
4
4
if Facter ::Util ::Resolution . which ( executable ) # rubocop:disable Style/GuardClause
5
- results = Facter ::Util ::Resolution . exec ( "#{ executable } -V 2>&1" ) . match ( %r{^.*(\d +\. \d +\. \d +\+ ?)$} )
5
+ results = Facter ::Util ::Resolution . exec ( "#{ executable } -V 2>&1" ) . match ( %r{^.*(\d +\. \d +\. \d +\+ ?(?:rc \d +)? )$} )
6
6
results [ 1 ] if results
7
7
end
8
8
end
You can’t perform that action at this time.
0 commit comments