Uploaded image for project: 'Libcloud'
  1. Libcloud
  2. LIBCLOUD-326

EC2 : ex_describe_keypairs should also return fingerprint

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.13.0
    • Compute
    • None

    Description

      {{
      keypairs = conn.ex_describe_all_keypairs ()
      for kp in keypairs :
      keypair = conn.ex_describe_keypairs (kp)
      pprint (keypair)
      }}

      results in

      {{

      {'keyName': 'futuregrid'}

      }}

      but should result in:

      {{

      {'keyName': 'futuregrid', 'keyFingerprint': '00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00:00'}

      }}

      This should be easy to change in https://svn.apache.org/viewvc/libcloud/trunk/libcloud/compute/drivers/ec2.py?view=markup line 819 by adding something like

      {{
      key_name = findattr(element=response, xpath='keySet/item/keyName',
      namespace=NAMESPACE)
      return

      { 'keyName': key_name } }}

      to
      {{
      key_name = findattr(element=response, xpath='keySet/item/keyName',
      namespace=NAMESPACE)
      key_fp = findattr(element=response, xpath='keySet/item/keyFingerprint',
      namespace=NAMESPACE)
      return

      { 'keyName' : key_name 'keyFingerprint': key_fp } }}

      or so...

      Attachments

        Activity

          People

            kami Tomaz Muraus
            andre.merzky Andre Merzky
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 0.5h
                0.5h
                Remaining:
                Remaining Estimate - 0.5h
                0.5h
                Logged:
                Time Spent - Not Specified
                Not Specified