def get_ami_metadata():
  res = {}
  base_url = 'http://169.254.169.254/latest/meta-data'
  instance_id = run('curl %s/instance-id' % base_url)
  assert re.match('i-[0-9a-f]{8}', instance_id)
  res['instance-id'] = instance_id

  return res
Application.get() should raise an exception when command does not exist
dataset/ETHPy150Open viewfinderco/viewfinder/fabfile.py/get_ami_metadata--crossover with--dataset/ETHPy150Open sdispater/cleo/tests/test_application.py/ApplicationTest.test_get_invalid_command