decbf325d122f6066c37bce80af6fa500f6e7681,poseidon/controllers/faucet/parser.py,Parser,clear_mirrors,#Parser#Any#,24
Before Change
def clear_mirrors(self, config_file):
// TODO check for other files
if not config_file:
// default to FAUCET default
config_file = "/etc/faucet/faucet.yaml"
try:
stream = open(config_file, "r")
obj_doc = yaml.safe_load(stream)
stream.close()
After Change
return True
def clear_mirrors(self, config_file):
config_file = Parser().get_config_file(config_file)
obj_doc = Parser().yaml_in(config_file)
if obj_doc:
// TODO make this smarter about more complex configurations (backup original values, etc)
obj_copy = deepcopy(obj_doc)
for switch in obj_copy["dps"]:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: CyberReboot/poseidon
Commit Name: decbf325d122f6066c37bce80af6fa500f6e7681
Time: 2018-12-27
Author: clewis@iqt.org
File Name: poseidon/controllers/faucet/parser.py
Class Name: Parser
Method Name: clear_mirrors
Project Name: pantsbuild/pants
Commit Name: 07d517a88c330102d10753b1ad118c22c335737c
Time: 2014-12-06
Author: benjyw@gmail.com
File Name: src/python/pants/backend/core/tasks/reflect.py
Class Name:
Method Name: gen_goals_glopts_reference_data
Project Name: CyberReboot/poseidon
Commit Name: decbf325d122f6066c37bce80af6fa500f6e7681
Time: 2018-12-27
Author: clewis@iqt.org
File Name: poseidon/controllers/faucet/parser.py
Class Name: Parser
Method Name: config