mirror of
https://github.com/ansible/awx.git
synced 2026-02-02 10:08:10 -03:30
remove instance_filter
This commit is contained in:
committed by
Ryan Petrello
parent
7278e7c025
commit
f32716a0f1
@@ -1,21 +0,0 @@
|
||||
#!/usr/bin/env python
|
||||
|
||||
import json
|
||||
import sys
|
||||
import requests
|
||||
from bs4 import BeautifulSoup
|
||||
|
||||
response = requests.get('http://docs.aws.amazon.com/AWSEC2/latest/APIReference/ApiReference-query-DescribeInstances.html')
|
||||
soup = BeautifulSoup(response.text)
|
||||
|
||||
section_h3 = soup.find(id='query-DescribeInstances-filters')
|
||||
section_div = section_h3.find_parent('div', attrs={'class': 'section'})
|
||||
|
||||
filter_names = []
|
||||
for term in section_div.select('div.variablelist dt span.term'):
|
||||
filter_name = term.get_text()
|
||||
if not filter_name.startswith('tag:'):
|
||||
filter_names.append(filter_name)
|
||||
filter_names.sort()
|
||||
|
||||
json.dump(filter_names, sys.stdout, indent=4)
|
||||
Reference in New Issue
Block a user