def get_keyid(keyname):
 if (not keyname):
  return None
 keypairs = list_keypairs(call='function')
 keyid = keypairs[keyname]['id']
 if keyid:
  return keyid
 raise SaltCloudNotFound('The specified ssh key could not be found.')

def get_keyid ( keyname ) : if ( not keyname ) : return None keypairs = list_keypairs ( call = 'function' ) keyid = keypairs [ keyname ] [ 'id' ] if keyid : return keyid raise SaltCloudNotFound ( 'The specified ssh key could not be found.' )
return the id of the keyname .