<s> import json <EOL> from wal_e . storage . base import BackupInfo <EOL> class WABSBackupInfo ( BackupInfo ) : <EOL> def load_detail ( self , conn ) : <EOL> if self . _details_loaded : <EOL> return <EOL> uri = "<STR_LIT>" . format ( <EOL> scheme = self . layout . scheme , <EOL> bucket = self . layout . store_name ( ) , <EOL> path = self . layout . basebackup_sentinel ( self ) ) <EOL> from wal_e . blobstore import wabs <EOL> data = wabs . uri_get_file ( None , uri , conn = conn ) <EOL> data = json . loads ( data ) <EOL> for ( k , v ) in data . items ( ) : <EOL> setattr ( self , k , v ) <EOL> self . _details_loaded = True </s>
