Pep8/Pyflakes fixing

Just avoiding the error popups in the editor that way.

Change-Id: Ic0cb903dfb0e9eff6b12d004da720919f6f1a009
This commit is contained in:
Dirk Mueller 2014-02-17 22:37:34 +01:00
parent 621376db44
commit 0ab2a1300f
6 changed files with 59 additions and 60 deletions

View File

@ -14,7 +14,6 @@
# License for the specific language governing permissions and limitations
# under the License.
import os
import sys
from diskimage_builder.element_dependencies import main

View File

@ -47,11 +47,11 @@ package_map = {
'qpidd': 'qpid-cpp-server',
'qpid-client': 'qpid-cpp-client',
'extlinux': 'syslinux-extlinux',
'mysql-client-5.5' : 'mariadb',
'mysql-server-5.5' : 'mariadb-server',
'libmysql-java' : 'mysql-connector-java',
'default-jre' : 'java',
'tftpd-hpa' : 'tftp-server',
'mysql-client-5.5': 'mariadb',
'mysql-server-5.5': 'mariadb-server',
'libmysql-java': 'mysql-connector-java',
'default-jre': 'java',
'tftpd-hpa': 'tftp-server',
'apache2': 'httpd',
'libapache2-mod-wsgi': 'mod_wsgi',
'gearman-job-server': 'gearmand',
@ -62,7 +62,7 @@ package_map = {
'nagios-plugins-basic': 'nagios-plugins-all',
# openstack mappings
'openstack-neutron-dhcp-agent': 'openstack-neutron',
}
}
for arg in sys.argv[1:]:
if arg not in package_map and arg.endswith('-dev'):

View File

@ -45,7 +45,7 @@ service_map = {
'cinder-scheduler': 'openstack-cinder-scheduler',
'cinder-volume': 'openstack-cinder-volume',
'tgt': 'tgtd',
}
}
for arg in sys.argv[1:]:
# We need to support the service name being different when installing from

View File

@ -53,7 +53,7 @@ package_map = {
'openstack-heat-common': 'openstack-heat',
'openstack-neutron-openvswitch': 'openstack-neutron-openvswitch-agent',
'openstack-neutron-ml2': 'openstack-neutron',
}
}
for arg in sys.argv[1:]:
print(package_map.get(arg, arg))

View File

@ -48,14 +48,14 @@ service_map = {
'nova-baremetal-deploy-helper': 'openstack-nova-baremetal-deploy-helper',
'nova-novncproxy': 'openstack-nova-novncproxy',
'nova-scheduler': 'openstack-nova-scheduler',
}
}
for arg in sys.argv[1:]:
# We need to support the service name being different when installing from
# source vs. packages. So, if the requested service file already exists,
# just use that.
if os.path.exists('/usr/lib/systemd/system/%s.service' % arg):
print arg
print(arg)
else:
print(service_map.get(arg, arg))
sys.exit(0)

View File

@ -26,12 +26,12 @@ package_map = {
'augeas-tools': 'augeas',
'openssh-client': 'openssh-clients',
'default-jre': 'java-1.7.0-openjdk',
'tftpd-hpa' : 'tftp-server',
'tftpd-hpa': 'tftp-server',
'libffi-dev': 'libffi-devel',
'gearman-job-server': 'gearmand',
'tgt': 'scsi-target-utils',
'stunnel4': 'stunnel',
}
}
for arg in sys.argv[1:]:
print(package_map.get(arg, arg))