@@ -752,12 +752,11 @@ def get_cloud_uris(self, data_products, include_bucket=True, full_url=False):
752752 if data_products includes products not found in the cloud.
753753 """
754754
755- if self ._cloud_connection is None :
756- raise AttributeError ("Must enable s3 dataset before attempting to query the s3 information" )
755+ self .enable_cloud_dataset ()
757756
758757 return self ._cloud_connection .get_cloud_uri_list (data_products , include_bucket , full_url )
759758
760- def get_cloud_uri (self , data_product , include_bucket = True , full_url = False ):
759+ def get_cloud_uri (self , data_product , include_bucket = True , full_url = False , verbose = True ):
761760 """
762761 For a given data product, returns the associated cloud URI.
763762 If the product is from a mission that does not support cloud access an
@@ -783,9 +782,10 @@ def get_cloud_uri(self, data_product, include_bucket=True, full_url=False):
783782 found in the cloud, None is returned.
784783 """
785784
786- if self . _cloud_connection is None :
787- raise AttributeError ( "Must enable s3 dataset before attempting to query the s3 information" )
785+ # Instatiate anonymous cloud access
786+ self . enable_cloud_dataset ( verbose )
788787
788+ # Query for product URIs
789789 return self ._cloud_connection .get_cloud_uri (data_product , include_bucket , full_url )
790790
791791
0 commit comments