← Back to team overview

yahoo-eng-team team mailing list archive

[Bug 1664799] [NEW] a wrong way of useing dictionary in servicegroup/drivers/mc.py

 

Public bug reported:

File "/nova/servicegroup/drivers/mc.py", line 76, in is_up
    % (elapsed,last_heartbeat, service_ref.id, key, timeutils.utcnow()))

AttributeError: ReadOnlyDict service_ref has no attribute 'id',the right
way should be service_ref.get('id').

** Affects: nova
     Importance: Undecided
     Assignee: yangyegang (yang-yegang)
         Status: New

** Description changed:

  File "/nova/servicegroup/drivers/mc.py", line 76, in is_up
-     % (elapsed,last_heartbeat, service_ref.id, key, timeutils.utcnow()))
+     % (elapsed,last_heartbeat, service_ref.id, key, timeutils.utcnow()))
  
  AttributeError: ReadOnlyDict service_ref has no attribute 'id',the right
- way should bu service_ref.get('id').
+ way should be service_ref.get('id').

** Changed in: nova
     Assignee: (unassigned) => yangyegang (yang-yegang)

-- 
You received this bug notification because you are a member of Yahoo!
Engineering Team, which is subscribed to OpenStack Compute (nova).
https://bugs.launchpad.net/bugs/1664799

Title:
  a wrong way of useing dictionary in servicegroup/drivers/mc.py

Status in OpenStack Compute (nova):
  New

Bug description:
  File "/nova/servicegroup/drivers/mc.py", line 76, in is_up
      % (elapsed,last_heartbeat, service_ref.id, key, timeutils.utcnow()))

  AttributeError: ReadOnlyDict service_ref has no attribute 'id',the
  right way should be service_ref.get('id').

To manage notifications about this bug go to:
https://bugs.launchpad.net/nova/+bug/1664799/+subscriptions


Follow ups