if datasource is already defined do not re-load it (even from cache)
This commit is contained in:
parent
b4bbac0f65
commit
03461eb912
@ -47,6 +47,7 @@ class EC2Init:
|
||||
datasource_map = {
|
||||
"ec2" : DataSourceEc2.DataSourceEc2,
|
||||
}
|
||||
datasource = None
|
||||
auto_order = [ 'ec2' ]
|
||||
|
||||
cfg = None
|
||||
@ -112,6 +113,8 @@ class EC2Init:
|
||||
pass
|
||||
|
||||
def get_data_source(self):
|
||||
if self.datasource is not None: return True
|
||||
|
||||
if self.restore_from_cache():
|
||||
return True
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user