Skip to content

Commit

Permalink
Replacing shebang for nova-migration-wrapper
Browse files Browse the repository at this point in the history
We're now using python3. We shouln't be using python2 here as it's not
shipped by default with RHEL8+

Change-Id: I65cf06d931769eb25d7fad47cd865fd11ba50f3d
  • Loading branch information
valleedelisle authored and SeanMooney committed Dec 7, 2021
1 parent 208ab61 commit 1284b9d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion nova-migration-wrapper
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/usr/bin/python2
#!/usr/libexec/platform-python
import os
import sys
import syslog
Expand Down
3 changes: 0 additions & 3 deletions openstack-nova.spec
Original file line number Diff line number Diff line change
Expand Up @@ -566,9 +566,6 @@ install -p -D -m 600 %{SOURCE36} %{buildroot}%{_sharedstatedir}/nova/.ssh/config
# Install nova migration ssh wrapper command
install -p -D -m 755 %{SOURCE37} %{buildroot}%{_bindir}/nova-migration-wrapper

# Fix shebangs for Python 3-only distros
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/nova-migration-wrapper

# Install logrotate
install -p -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/openstack-nova

Expand Down

0 comments on commit 1284b9d

Please sign in to comment.