Advertisement
Guest User

Untitled

a guest
Apr 9th, 2018
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.68 KB | None | 0 0
  1. grep -r DeviceIndex ec2.py
  2. return {'DeviceIndex': interface['DeviceIndex'],
  3. for k in ('DeviceIndex', 'AssociatePublicIpAddress', 'NetworkInterfaceId'):
  4. eni_id, interface['DeviceIndex']
  5. return {'DeviceIndex': interface['DeviceIndex'],
  6. if 'DeviceIndex' in interface:
  7. if interface['DeviceIndex'] in config_enis:
  8. 'Duplicate DeviceIndex in profile. Cannot update ENIs.'
  9. config_enis[str(interface['DeviceIndex'])] = interface
  10. ... {'DeviceIndex': 0, 'SubnetId': 'subid0',
  11. ... {'DeviceIndex': 1,
  12. ... 'NetworkInterface.0.DeviceIndex': 0,
  13. ... 'NetworkInterface.1.DeviceIndex': 1}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement