def awsReadMetadataKey():
  """Print key from a running instance's metadata"""
  parser = argparse.ArgumentParser()

  parser.add_argument("--key",
                      dest="keyname",
                      help="Which metadata key to read")

  cli = parser.parse_args()

  print getMetadataKey(name=cli.keyname)
def awsReadMetadataKey ( ) : parser = argparse . ArgumentParser ( ) parser . add_argument ( "--key" , dest = "keyname" , help = "Which metadata key to read" ) cli = parser . parse_args ( ) print getMetadataKey ( name = cli . keyname )
Print key from a running instance's metadata