mirror of
https://opendev.org/x/pyghmi
synced 2025-04-15 01:29:31 +00:00
Update to newer hacking
Fix some complaints, mask others for now. Change-Id: Iba4adf30131724db401fe2ee773975942fd58fd2
This commit is contained in:
parent
adb8f1cf56
commit
f8c92bd9de
30
.zuul.yaml
30
.zuul.yaml
@ -1,30 +0,0 @@
|
||||
- project:
|
||||
check:
|
||||
jobs:
|
||||
- pyghmi-tempest-devstack-ironic-pxe_ipmitool-src:
|
||||
irrelevant-files:
|
||||
- ^(test-|)requirements.txt$
|
||||
- ^setup.cfg$
|
||||
gate:
|
||||
jobs:
|
||||
- pyghmi-tempest-devstack-ironic-pxe_ipmitool-src:
|
||||
irrelevant-files:
|
||||
- ^(test-|)requirements.txt$
|
||||
- ^setup.cfg$
|
||||
|
||||
- job:
|
||||
name: pyghmi-tempest-devstack-ironic-pxe_ipmitool-src
|
||||
parent: legacy-dsvm-base
|
||||
run: playbooks/legacy/tempest-devstack-ironic-pxe_ipmitool-pyghmi-src/run.yaml
|
||||
post-run: playbooks/legacy/tempest-devstack-ironic-pxe_ipmitool-pyghmi-src/post.yaml
|
||||
timeout: 10800
|
||||
required-projects:
|
||||
- openstack-infra/devstack-gate
|
||||
- openstack/ironic
|
||||
- openstack/ironic-lib
|
||||
- openstack/ironic-python-agent
|
||||
- openstack/ironic-tempest-plugin
|
||||
- openstack/pyghmi
|
||||
- openstack/python-ironicclient
|
||||
- openstack/tempest
|
||||
- openstack/virtualbmc
|
@ -12,7 +12,7 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
__author__ = 'jjohnson2@lenovo.com'
|
||||
# __author__ = 'jjohnson2@lenovo.com'
|
||||
|
||||
# this is a quick sample of how to write something that acts like a bmc
|
||||
# to play:
|
||||
|
@ -13,12 +13,12 @@
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
"""
|
||||
@author: Jarrod Johnson <jbjohnso@us.ibm.com>
|
||||
"""
|
||||
|
||||
"""A simple little script to exemplify/test ipmi.console module
|
||||
"""
|
||||
# """
|
||||
# @author: Jarrod Johnson <jbjohnso@us.ibm.com>
|
||||
# """
|
||||
#
|
||||
# """A simple little script to exemplify/test ipmi.console module
|
||||
# """
|
||||
import fcntl
|
||||
import os
|
||||
import select
|
||||
|
@ -12,14 +12,14 @@
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
"""
|
||||
@author: Jarrod Johnson <jbjohnso@us.ibm.com>
|
||||
"""
|
||||
# """
|
||||
# @author: Jarrod Johnson <jbjohnso@us.ibm.com>
|
||||
# """
|
||||
|
||||
"""This is an example of using the library in a synchronous fashion. For now,
|
||||
it isn't conceived as a general utility to actually use, just help developers
|
||||
understand how the ipmi_command class workes.
|
||||
"""
|
||||
# """This is an example of using the library in a synchronous fashion. For now,
|
||||
# it isn't conceived as a general utility to actually use, just help developers
|
||||
# understand how the ipmi_command class workes.
|
||||
# """
|
||||
import os
|
||||
import string
|
||||
import sys
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
# Written by pmartini2, but mostly a clone of fakebmc, written by jjohnson2
|
||||
__author__ = 'pmartini2@bloomberg.net'
|
||||
# __author__ = 'pmartini2@bloomberg.net'
|
||||
|
||||
# This is a simple, but working proof of concept of using pyghmi.ipmi.bmc to
|
||||
# control a VM
|
||||
|
@ -884,7 +884,7 @@ class XCCClient(IMMClient):
|
||||
standalonedisks.append(
|
||||
storage.Disk(
|
||||
name=disk['name'], description=disk['type'],
|
||||
id=(cid, disk['id']), status=disk['RAIDState'],
|
||||
id=(cid, disk['id']), status=disk['RAIDState'],
|
||||
serial=disk['serialNo'], fru=disk['fruPartNo']))
|
||||
return storage.ConfigSpec(disks=standalonedisks, arrays=pools)
|
||||
|
||||
|
@ -1285,7 +1285,7 @@ sensor_type_offsets = {
|
||||
'deassertion_severity': const.Health.Ok,
|
||||
},
|
||||
},
|
||||
0x21: { # slot/connector
|
||||
0x21: { # slot/connector
|
||||
0x0: {
|
||||
'desc': 'Fault',
|
||||
'severity': const.Health.Critical,
|
||||
|
5
tox.ini
5
tox.ini
@ -16,7 +16,7 @@ sitepackages = True
|
||||
|
||||
[testenv:pep8]
|
||||
whitelist_externals = bash
|
||||
commands = bash -c 'pep8 pyghmi bin/*'
|
||||
commands = bash -c 'pycodestyle pyghmi bin/*'
|
||||
|
||||
[testenv:cover]
|
||||
setenv = VIRTUAL_ENV={envdir}
|
||||
@ -29,3 +29,6 @@ commands = {posargs}
|
||||
[flake8]
|
||||
exclude = .venv,.tox,dist,doc,*.egg,build
|
||||
show-source = true
|
||||
|
||||
[pep8]
|
||||
ignore = E731,E226,E123
|
||||
|
Loading…
x
Reference in New Issue
Block a user