Pep8/Pyflakes fixing
Just avoiding the error popups in the editor that way. Change-Id: Ic0cb903dfb0e9eff6b12d004da720919f6f1a009
This commit is contained in:
parent
621376db44
commit
0ab2a1300f
@ -14,7 +14,6 @@
|
|||||||
# License for the specific language governing permissions and limitations
|
# License for the specific language governing permissions and limitations
|
||||||
# under the License.
|
# under the License.
|
||||||
|
|
||||||
import os
|
|
||||||
import sys
|
import sys
|
||||||
|
|
||||||
from diskimage_builder.element_dependencies import main
|
from diskimage_builder.element_dependencies import main
|
||||||
|
@ -47,11 +47,11 @@ package_map = {
|
|||||||
'qpidd': 'qpid-cpp-server',
|
'qpidd': 'qpid-cpp-server',
|
||||||
'qpid-client': 'qpid-cpp-client',
|
'qpid-client': 'qpid-cpp-client',
|
||||||
'extlinux': 'syslinux-extlinux',
|
'extlinux': 'syslinux-extlinux',
|
||||||
'mysql-client-5.5' : 'mariadb',
|
'mysql-client-5.5': 'mariadb',
|
||||||
'mysql-server-5.5' : 'mariadb-server',
|
'mysql-server-5.5': 'mariadb-server',
|
||||||
'libmysql-java' : 'mysql-connector-java',
|
'libmysql-java': 'mysql-connector-java',
|
||||||
'default-jre' : 'java',
|
'default-jre': 'java',
|
||||||
'tftpd-hpa' : 'tftp-server',
|
'tftpd-hpa': 'tftp-server',
|
||||||
'apache2': 'httpd',
|
'apache2': 'httpd',
|
||||||
'libapache2-mod-wsgi': 'mod_wsgi',
|
'libapache2-mod-wsgi': 'mod_wsgi',
|
||||||
'gearman-job-server': 'gearmand',
|
'gearman-job-server': 'gearmand',
|
||||||
@ -62,7 +62,7 @@ package_map = {
|
|||||||
'nagios-plugins-basic': 'nagios-plugins-all',
|
'nagios-plugins-basic': 'nagios-plugins-all',
|
||||||
# openstack mappings
|
# openstack mappings
|
||||||
'openstack-neutron-dhcp-agent': 'openstack-neutron',
|
'openstack-neutron-dhcp-agent': 'openstack-neutron',
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
if arg not in package_map and arg.endswith('-dev'):
|
if arg not in package_map and arg.endswith('-dev'):
|
||||||
|
@ -45,7 +45,7 @@ service_map = {
|
|||||||
'cinder-scheduler': 'openstack-cinder-scheduler',
|
'cinder-scheduler': 'openstack-cinder-scheduler',
|
||||||
'cinder-volume': 'openstack-cinder-volume',
|
'cinder-volume': 'openstack-cinder-volume',
|
||||||
'tgt': 'tgtd',
|
'tgt': 'tgtd',
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
# We need to support the service name being different when installing from
|
# We need to support the service name being different when installing from
|
||||||
|
@ -53,7 +53,7 @@ package_map = {
|
|||||||
'openstack-heat-common': 'openstack-heat',
|
'openstack-heat-common': 'openstack-heat',
|
||||||
'openstack-neutron-openvswitch': 'openstack-neutron-openvswitch-agent',
|
'openstack-neutron-openvswitch': 'openstack-neutron-openvswitch-agent',
|
||||||
'openstack-neutron-ml2': 'openstack-neutron',
|
'openstack-neutron-ml2': 'openstack-neutron',
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
print(package_map.get(arg, arg))
|
print(package_map.get(arg, arg))
|
||||||
|
@ -48,14 +48,14 @@ service_map = {
|
|||||||
'nova-baremetal-deploy-helper': 'openstack-nova-baremetal-deploy-helper',
|
'nova-baremetal-deploy-helper': 'openstack-nova-baremetal-deploy-helper',
|
||||||
'nova-novncproxy': 'openstack-nova-novncproxy',
|
'nova-novncproxy': 'openstack-nova-novncproxy',
|
||||||
'nova-scheduler': 'openstack-nova-scheduler',
|
'nova-scheduler': 'openstack-nova-scheduler',
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
# We need to support the service name being different when installing from
|
# We need to support the service name being different when installing from
|
||||||
# source vs. packages. So, if the requested service file already exists,
|
# source vs. packages. So, if the requested service file already exists,
|
||||||
# just use that.
|
# just use that.
|
||||||
if os.path.exists('/usr/lib/systemd/system/%s.service' % arg):
|
if os.path.exists('/usr/lib/systemd/system/%s.service' % arg):
|
||||||
print arg
|
print(arg)
|
||||||
else:
|
else:
|
||||||
print(service_map.get(arg, arg))
|
print(service_map.get(arg, arg))
|
||||||
sys.exit(0)
|
sys.exit(0)
|
||||||
|
@ -26,12 +26,12 @@ package_map = {
|
|||||||
'augeas-tools': 'augeas',
|
'augeas-tools': 'augeas',
|
||||||
'openssh-client': 'openssh-clients',
|
'openssh-client': 'openssh-clients',
|
||||||
'default-jre': 'java-1.7.0-openjdk',
|
'default-jre': 'java-1.7.0-openjdk',
|
||||||
'tftpd-hpa' : 'tftp-server',
|
'tftpd-hpa': 'tftp-server',
|
||||||
'libffi-dev': 'libffi-devel',
|
'libffi-dev': 'libffi-devel',
|
||||||
'gearman-job-server': 'gearmand',
|
'gearman-job-server': 'gearmand',
|
||||||
'tgt': 'scsi-target-utils',
|
'tgt': 'scsi-target-utils',
|
||||||
'stunnel4': 'stunnel',
|
'stunnel4': 'stunnel',
|
||||||
}
|
}
|
||||||
|
|
||||||
for arg in sys.argv[1:]:
|
for arg in sys.argv[1:]:
|
||||||
print(package_map.get(arg, arg))
|
print(package_map.get(arg, arg))
|
||||||
|
Loading…
Reference in New Issue
Block a user