@@ -753,7 +753,7 @@ def is_page_content_is_already_updated(self, page_id, body, title=None):
753753 log .debug ('Old Content: """{body}"""' .format (body = confluence_body_content ))
754754 log .debug ('New Content: """{body}"""' .format (body = body ))
755755
756- if confluence_body_content == body :
756+ if confluence_body_content . strip () == body . strip () :
757757 log .warning ('Content of {page_id} is exactly the same' .format (page_id = page_id ))
758758 return True
759759 else :
@@ -1040,8 +1040,10 @@ def get_space(self, space_key, expand='description.plain,homepage'):
10401040 :param expand: OPTIONAL: additional info from description, homepage
10411041 :return: Returns the space along with its ID
10421042 """
1043- url = 'rest/api/space/{space_key}?expand={expand}' .format (space_key = space_key ,
1044- expand = expand )
1043+ url = 'rest/api/space/{space_key}' .format (space_key = space_key )
1044+ params = {}
1045+ if expand :
1046+ params ["expand" ] = expand
10451047 return self .get (url )
10461048
10471049 def create_space (self , space_key , space_name ):
@@ -1066,6 +1068,13 @@ def delete_space(self, space_key):
10661068 url = 'rest/api/space/{}' .format (space_key )
10671069 return self .delete (url )
10681070
1071+ def get_space_property (self , space_key , expand = None ):
1072+ url = 'rest/api/space/{space}/property' .format (space = space_key )
1073+ params = {}
1074+ if expand :
1075+ params ['expand' ] = expand
1076+ return self .get (url , params = params )
1077+
10691078 def get_user_details_by_username (self , username , expand = None ):
10701079 """
10711080 Get information about a user through username
0 commit comments